/* =========================================================
   SOLODEV — Habib · creative watermark page
   Orange + white, handcrafted.
   Display: Syne · Body: Instrument Sans · Hand: Caveat
   ========================================================= */

:root {
  --orange: #ff5a1f;
  --orange-deep: #e14a12;
  --orange-soft: #ffede3;
  --ink: #1a120b;
  --ink-soft: #4a3a30;
  --paper: #ffffff;
  --paper-warm: #fffbf7;
  --line: #f0e2d6;
  --radius: 20px;
  --shadow: 0 18px 50px -22px rgba(26, 18, 11, .35);
  --shadow-sm: 0 10px 30px -16px rgba(26, 18, 11, .28);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;
  --ease: cubic-bezier(.22, .8, .28, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--orange); color: #fff; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }

/* ---------- utilities ---------- */
.hand { font-family: var(--font-hand); color: var(--orange-deep); font-weight: 600; }
.hand-note { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700;
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange-deep); margin-bottom: 18px;
}
.ic { width: 17px; height: 17px; flex: none; }
.gh { width: 18px; height: 18px; opacity: .55; }

/* ---------- reveal (JS-enhanced; ALWAYS visible by default) ---------- */
[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal] {
  transform: translateY(18px);
  transition: transform .8s var(--ease);
}
.js [data-reveal].in-view { transform: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 18, 11, .06);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 14px clamp(20px, 4vw, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; display: block; }
.brand-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.12rem; letter-spacing: .06em;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.nav-gh) {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--ink-soft); position: relative; padding: 6px 0;
}
.nav-links a:not(.nav-gh)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:not(.nav-gh):hover { color: var(--ink); }
.nav-links a:not(.nav-gh):hover::after { transform: scaleX(1); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  padding: 13px 24px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  min-height: 44px;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 26px -12px rgba(255, 90, 31, .7); }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; border: 1.5px solid var(--ink); padding: 10px 18px; font-size: .9rem; }
.btn-dark:hover { background: var(--orange); border-color: var(--orange); }

/* hamburger (hidden on desktop) */
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  color: var(--ink); align-items: center; justify-content: center;
}
.menu-btn svg { width: 24px; height: 24px; }

/* ---------- mobile menu overlay ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--orange-soft);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-close {
  position: absolute; top: 18px; right: 20px;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.mobile-close svg { width: 22px; height: 22px; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.mobile-menu nav a:not(.btn) {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 8vw, 2.6rem); color: var(--ink);
  padding: 4px 12px;
}
.mobile-menu nav .btn { margin-top: 12px; font-size: 1.1rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(8.5rem, 16vw, 11rem) 0 clamp(4rem, 8vw, 6rem);
  background: var(--paper-warm);
}
.hero-wordmark {
  position: absolute; top: 7rem; right: -2rem; z-index: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(9rem, 24vw, 21rem); line-height: 1; letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 90, 31, .16);
  text-stroke: 1.5px rgba(255, 90, 31, .16);
  user-select: none; pointer-events: none;
  white-space: nowrap;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px);
  display: grid; grid-template-columns: 1.18fr .82fr; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero-copy { max-width: 640px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  line-height: 1.02; letter-spacing: -.02em;
  margin-bottom: 26px; position: relative;
}
.hero h1 em {
  font-style: normal; color: var(--orange);
  font-family: var(--font-hand); font-weight: 700; letter-spacing: 0;
}
.hero h1 .amp { font-family: var(--font-hand); color: var(--ink-soft); padding: 0 .1em; font-size: .8em; }
.h-underline {
  width: clamp(150px, 26vw, 260px); height: 18px; margin-top: 10px; display: block;
}
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft);
  max-width: 520px; margin-bottom: 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.stats {
  display: flex; gap: clamp(24px, 4vw, 48px);
  padding-top: 26px; border-top: 1px solid var(--line);
}
.stats strong {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem); color: var(--ink); line-height: 1;
}
.stats span {
  display: block; margin-top: 6px; font-size: .85rem; color: var(--ink-soft);
  letter-spacing: .02em;
}

/* hero visual: polaroid + stamp */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.polaroid {
  position: relative; background: #fff; padding: 16px 16px 12px;
  box-shadow: var(--shadow); border-radius: 6px;
  width: min(320px, 78vw); transform: rotate(-3deg);
  transition: transform .45s var(--ease);
}
.polaroid:hover { transform: rotate(-1deg) translateY(-6px); }
.polaroid img { border-radius: 3px; aspect-ratio: 1 / 1.02; object-fit: cover; width: 100%; }
.polaroid figcaption {
  font-family: var(--font-hand); font-size: 1.35rem; text-align: center;
  color: var(--ink); padding: 12px 4px 2px;
}
.tape {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 108px; height: 28px; background: rgba(255, 90, 31, .28);
  backdrop-filter: blur(1px); border-left: 2px dashed rgba(255, 90, 31, .35);
  border-right: 2px dashed rgba(255, 90, 31, .35);
}

.stamp {
  width: 168px; height: 168px; flex: none;
  position: absolute; right: 0; bottom: -6px;
  animation: spin 24s linear infinite;
  filter: drop-shadow(0 14px 30px rgba(26, 18, 11, .25));
}
@keyframes spin { to { transform: rotate(360deg); } }
.stamp-sm { position: static; width: 158px; height: 158px; animation: spin 24s linear infinite; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-hand); font-size: 1.15rem; color: var(--ink-soft);
}
.scroll-hint svg { width: 16px; height: 16px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  background: var(--orange); color: #fff; overflow: hidden;
  padding: 16px 0; border-block: 2px solid var(--ink);
  position: relative; z-index: 2;
}
.marquee-track {
  display: flex; align-items: center; gap: 34px; white-space: nowrap;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.05rem; letter-spacing: .14em;
}
.mq-star { display: inline-flex; align-items: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTION HEADS
   ========================================================= */
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.8rem); }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.04;
  letter-spacing: -.02em; margin-bottom: 18px;
}
.lede-small { max-width: 560px; margin-bottom: 0; font-size: 1.08rem; }

/* =========================================================
   WATERMARK / MARKS
   ========================================================= */
.watermark { background: var(--paper-warm); }
.marks-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
}
.mark-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column; align-items: center;
}
.mark-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(255, 90, 31, .4); }
.mark-visual {
  width: 100%; display: flex; align-items: center; justify-content: center;
  min-height: 210px; margin-bottom: 18px;
  background: radial-gradient(circle at 50% 60%, var(--orange-soft), transparent 70%);
  border-radius: 14px;
}
.mark-card h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 10px; letter-spacing: .01em;
}
.mark-card p { font-size: .97rem; color: var(--ink-soft); max-width: 260px; }
.mono-tile { width: 128px; height: 128px; }
.sig-visual { background: radial-gradient(circle at 50% 65%, rgba(255, 90, 31, .14), transparent 70%); }
.sig { width: 100%; max-width: 210px; height: auto; }

/* =========================================================
   WORK
   ========================================================= */
.work-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
}
.work-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative; overflow: hidden;
}
.work-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(255, 90, 31, .35); }
.work-card:hover::before { transform: scaleX(1); }
.work-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lang {
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .1em; padding: 5px 11px; border-radius: 999px;
}
.lang-ts { background: var(--orange-soft); color: var(--orange-deep); }
.lang-js { background: var(--ink); color: #fff; }
.work-card h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  margin-bottom: 10px; letter-spacing: -.01em;
}
.work-card p { color: var(--ink-soft); font-size: .99rem; margin-bottom: 20px; flex: 1; }
.work-card a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--orange-deep);
}
.work-card a .ic { transition: transform .3s var(--ease); }
.work-card a:hover .ic { transform: translateX(4px); }

.work-more {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
  background: var(--orange-soft); border: 1.5px dashed rgba(255, 90, 31, .45);
  border-radius: var(--radius);
}
.work-more .hand { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--paper-warm); }
.about-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-text h2 { margin-bottom: 22px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 18px; max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips li {
  font-family: var(--font-display); font-weight: 700; font-size: .88rem;
  padding: 9px 17px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--ink);
}
.chips li:nth-child(odd) { background: var(--orange-soft); border-color: rgba(255, 90, 31, .5); color: var(--orange-deep); }

.quote-card {
  background: var(--orange); color: #fff; border-radius: var(--radius);
  padding: clamp(28px, 4vw, 46px); position: relative;
  transform: rotate(1.2deg);
  box-shadow: 0 24px 60px -24px rgba(225, 74, 18, .65);
}
.quote-card .quote-mark { width: 34px; height: 34px; opacity: .9; margin-bottom: 18px; }
.quote-card blockquote {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.25;
  margin-bottom: 20px; letter-spacing: -.01em;
}
.quote-card figcaption { color: rgba(255, 255, 255, .9); font-size: 1.3rem; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--paper-warm); }
.contact-head { margin-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.contact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
}
.contact-card {
  background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 40px);
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; column-gap: 18px; row-gap: 4px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
  position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  opacity: 0; transition: opacity .35s var(--ease); z-index: 0;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.contact-card:hover::after { opacity: 1; }
.contact-card:hover .contact-label,
.contact-card:hover .contact-url,
.contact-card:hover .contact-ico,
.contact-card:hover .contact-go { color: #fff; border-color: #fff; }
.contact-ico {
  grid-row: 1 / span 2;
  width: 54px; height: 54px; border-radius: 14px;
  border: 1.5px solid var(--ink); color: var(--orange-deep);
  display: flex; align-items: center; justify-content: center;
}
.contact-ico svg { width: 24px; height: 24px; }
.contact-label {
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; align-self: end;
}
.contact-url {
  color: var(--ink-soft); font-size: .95rem; align-self: start;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.contact-go { color: var(--ink); }
.contact-go .ic { width: 22px; height: 22px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: #fff; padding: 48px 0 40px; }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px);
  display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center;
}
.footer .brand-name { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.footer-links a {
  color: rgba(255, 255, 255, .72); font-family: var(--font-display); font-weight: 700; font-size: .94rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--orange); }
.footer-note { color: rgba(255, 255, 255, .5); font-size: .85rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-wordmark { font-size: clamp(8rem, 30vw, 14rem); top: 5rem; right: -3rem; }
  .hero-visual { min-height: 400px; margin-top: 10px; }
  .marks-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .quote-card { transform: none; }
}

@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { gap: 20px; flex-wrap: wrap; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}

@media (max-width: 420px) {
  .brand-name { display: none; }
  .scroll-hint { display: none; }
  .hero-visual { min-height: 360px; }
  .stamp { width: 132px; height: 132px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .stamp, .stamp-sm, .marquee-track, .scroll-hint svg { animation: none; }
  .polaroid, .mark-card, .work-card, .contact-card { transition: none; }
  .polaroid:hover, .mark-card:hover, .work-card:hover, .contact-card:hover { transform: none; }
}
