/* ============================================================
   ANTHRA DESIGN STUDIO — styles.css
   Light editorial · warm off-white · generous space · elegant type
   Interactive 3D room hero + photography-forward gallery.
   ============================================================ */

:root {
  --bg:        #f6f3ee;
  --bg-2:      #efeae1;
  --paper:     #fffdf9;
  --ink:       #262320;
  --muted:     #6f685c;
  --muted-2:   #9a9285;
  --line:      rgba(38,35,32,0.12);
  --line-2:    rgba(38,35,32,0.22);
  --accent:    #9c7b4c;   /* muted bronze */
  --accent-2:  #b99765;

  --maxw: 1240px;
  --gutter: clamp(1.2rem, 5vw, 5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Cormorant Garamond", "Hoefler Text", Georgia, serif;
  --sans:  "Jost", "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--ink);
  line-height: 1.65; font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; color: inherit; }
::selection { background: rgba(156,123,76,0.22); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; top: 0; left: 50%; transform: translate(-50%,-130%); background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 10px 10px; z-index: 300; transition: transform .25s var(--ease); }
.skip-link:focus { transform: translate(-50%,0); }
:where(a,button,input,textarea,select,[tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Type ---------- */
h1,h2,h3 { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; }
.eyebrow { font-family: var(--sans); font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.section__title { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-top: .7rem; }
.section__lede { color: var(--muted); margin-top: 1rem; max-width: 54ch; font-size: 1.08rem; }
em { font-style: italic; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .9em 1.7em; border-radius: 100px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; border: 1px solid transparent; transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease); will-change: transform; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--accent); transform: translateY(-2px); }
.btn--line { border-color: var(--line-2); color: var(--ink); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ============================================================ NAV */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; border-bottom: 1px solid transparent; transition: background .4s, backdrop-filter .4s, border-color .4s; }
.nav.is-scrolled { background: rgba(246,243,238,0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--serif); }
.logo__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 1.2rem; }
.logo__name { font-size: 1.3rem; line-height: 1; }
.logo__name small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-2); margin-top: 3px; }
.nav__menu { display: flex; align-items: center; gap: clamp(1rem,2.4vw,2.2rem); }
.nav__menu a { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .25s; position: relative; }
.nav__menu a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0; background: var(--accent); transition: width .3s var(--ease); }
.nav__menu a:hover, .nav__menu a.is-active { color: var(--ink); }
.nav__menu a.is-active:not(.btn)::after { width: 100%; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 800px) {
  .nav__toggle { display: flex; }
  .nav__menu { position: fixed; inset: 0 0 0 auto; width: min(80vw,320px); flex-direction: column; justify-content: center; gap: 1.6rem; background: rgba(246,243,238,0.97); backdrop-filter: blur(16px); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .45s var(--ease); }
  .nav__menu a { font-size: 1.05rem; }
  body.menu-open .nav__menu { transform: translateX(0); }
}

/* ============================================================ HERO */
.hero { min-height: 100svh; display: flex; align-items: center; padding-block: 7rem 3rem; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; width: 100%; }
@media (min-width: 920px) { .hero__grid { grid-template-columns: 0.92fr 1.08fr; gap: 3rem; } }
.hero__title { font-size: clamp(2.8rem, 7vw, 5.6rem); margin: 1rem 0 1.4rem; }
.hero__lede { color: var(--muted); font-size: clamp(1.05rem,1.5vw,1.25rem); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero__room { position: relative; aspect-ratio: 1 / 0.92; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, #fffdf9, #ece5d8); border: 1px solid var(--line); box-shadow: 0 40px 90px -50px rgba(40,32,20,0.5); }
#room-canvas { width: 100%; height: 100%; display: block; }
.room-hint { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); background: rgba(255,253,249,0.7); backdrop-filter: blur(6px); padding: .5em .9em; border-radius: 100px; border: 1px solid var(--line); }
.hero__room-fallback { display: none; position: absolute; inset: 0; background-size: cover; background-position: center; }
.no3d #room-canvas, .no3d .room-hint { display: none; }
.no3d .hero__room-fallback { display: block; background-image: url('assets/img/design-4.jpg'); }

/* ============================================================ SECTIONS */
.section { padding-block: clamp(4.5rem, 12vh, 9rem); position: relative; }
.section--tint { background: var(--bg-2); }

/* Services */
.services { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 760px) { .services { grid-template-columns: 1fr 1fr; } }
.service { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.8rem,3vw,2.8rem); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.service:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(40,32,20,0.35); border-color: var(--line-2); }
.service .num { font-family: var(--serif); color: var(--accent); font-size: 1rem; letter-spacing: .08em; }
.service h3 { font-size: clamp(1.6rem,2.6vw,2.1rem); margin: .3rem 0 .7rem; }
.service p { color: var(--muted); }
.service ul { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.service li { display: flex; gap: .7rem; align-items: baseline; color: var(--muted); font-size: .96rem; }
.service li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; margin-top: .55em; }

/* Process */
.process { margin-top: 3rem; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem,3vw,2.6rem); align-items: start; padding: clamp(1.5rem,3vw,2.2rem) 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .idx { font-family: var(--serif); font-size: clamp(2rem,5vw,3.2rem); color: var(--accent); line-height: 1; }
.step h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.step p { color: var(--muted); max-width: 60ch; }

/* Selected Work — large editorial projects */
.work { margin-top: 3.5rem; display: grid; gap: clamp(3rem, 7vw, 6rem); }
.project { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: center; }
@media (min-width: 860px) { .project { grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem,4vw,4rem); } .project:nth-child(even) .project__media { order: 2; } }
.project__media { position: relative; aspect-ratio: 3/2; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.project__img { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); transition: transform 1.1s var(--ease); }
.project:hover .project__img { transform: scale(1.1); }
.project__n { font-family: var(--serif); color: var(--accent); font-size: 1rem; }
.project h3 { font-size: clamp(1.7rem,3vw,2.4rem); margin: .3rem 0 .7rem; }
.project p { color: var(--muted); }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.tags li { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line-2); padding: .35em .8em; border-radius: 100px; }

/* About + stats */
.about { display: grid; gap: clamp(2rem,5vw,4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .about { grid-template-columns: 1.05fr 0.95fr; } }
.about__text p { color: var(--muted); margin-top: 1rem; max-width: 56ch; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stat { background: var(--paper); padding: 1.6rem 1.5rem; }
.stat__n { font-family: var(--serif); font-size: clamp(2rem,4vw,2.9rem); color: var(--ink); }
.stat__n span { color: var(--accent); }
.stat__l { color: var(--muted-2); font-size: .82rem; letter-spacing: .04em; margin-top: .3rem; }

/* Contact */
.contact { display: grid; gap: clamp(2rem,5vw,3.5rem); grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact { grid-template-columns: 0.9fr 1.1fr; } }
.contact__intro p { color: var(--muted); margin-top: 1rem; max-width: 46ch; }
.contact__links { list-style: none; padding: 0; margin-top: 1.8rem; display: grid; gap: .9rem; }
.contact__links li { display: grid; gap: .1rem; }
.contact__links span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.contact__links a { color: var(--ink); word-break: break-word; }
.contact__links a:hover { color: var(--accent); }
.contact__form { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.6rem,3vw,2.4rem); display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .5rem; }
.field--full { grid-column: 1/-1; }
.field label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: .8em 1em; transition: border-color .25s, background .25s; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; background: var(--paper); }
.field textarea { min-height: 130px; resize: vertical; }
.form__status { grid-column: 1/-1; min-height: 1.3em; font-size: .9rem; color: var(--accent); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 2.6rem; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer ul { list-style: none; padding: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer a:hover { color: var(--ink); }

/* ============================================================
   MODERN TOUCHES
   ============================================================ */
.pill { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.5em 1em 0.5em 0.8em; border: 1px solid var(--line-2); border-radius: 100px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); margin-bottom: 1.5rem; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #5fae6a; box-shadow: 0 0 0 4px rgba(95,174,106,0.2); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(95,174,106,0.22); } 50% { box-shadow: 0 0 0 6px rgba(95,174,106,0.08); } }

.btn .arw { display: inline-block; transition: transform 0.3s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

/* Kinetic marquee */
.marquee2 { border-block: 1px solid var(--line); overflow: hidden; padding-block: 1rem; background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee2 .track { display: flex; width: max-content; animation: mq 30s linear infinite; }
.marquee2 .track span { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; }
.marquee2 .track b { color: var(--accent); font-weight: 400; margin-inline: 1.6rem; font-size: 0.7em; }
@keyframes mq { to { transform: translateX(-50%); } }

/* Section heading index (editorial) */
.sec-index { font-family: var(--serif); color: var(--accent); font-size: 0.95rem; letter-spacing: 0.04em; }

/* Project hover: link + light sheen */
.project__media { transform: translateZ(0); }
.project__media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.28) 50%, transparent 62%); transform: translateX(-110%); transition: transform 0.9s var(--ease); }
.project:hover .project__media::after { transform: translateX(110%); }
.project__link { display: inline-flex; align-items: center; gap: 0.5em; margin-top: 1.3rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 0.35em; transition: gap 0.3s var(--ease), color 0.3s, border-color 0.3s; }
.project__link:hover { gap: 0.85em; color: var(--accent); border-color: var(--accent); }

/* Reveal — fail-safe: visible by default; only hidden once JS adds .js-anim,
   so content can never get stuck invisible if a script throttles or errors. */
[data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-anim [data-reveal] { opacity: 0; transform: translateY(28px); }
.js-anim [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; } }
