/* AMIRDEES — design system
   Palette is taken from the rendered interiors: walnut, stone, brass. */

:root {
  --walnut: #211b17;
  --walnut-deep: #181310;
  --walnut-lift: #2c241f;
  --stone: #e8e1d5;
  --stone-dim: #a79e91;
  --brass: #b8996b;
  --line: rgba(232, 225, 213, 0.14);
  --line-strong: rgba(232, 225, 213, 0.32);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--walnut);
  color: var(--stone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--stone); color: var(--walnut); padding: 10px 16px;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.solid {
  background: rgba(33, 27, 23, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-in {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand img { height: 26px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a {
  font-size: 14.5px; font-weight: 400; letter-spacing: .01em;
  color: var(--stone-dim);
  padding: 6px 0; position: relative;
  transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--stone); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--brass);
}

.header-tools { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; gap: 2px; font-size: 13px; }
.lang button {
  background: none; border: 0; padding: 4px 7px; color: var(--stone-dim);
  letter-spacing: .04em; font-weight: 400;
}
.lang button[aria-pressed="true"] { color: var(--stone); box-shadow: inset 0 -1px 0 var(--brass); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 26px;
  background: var(--stone); color: var(--walnut);
  border: 1px solid var(--stone);
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--brass); border-color: var(--brass); }
.btn.ghost { background: transparent; color: var(--stone); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--stone); background: transparent; }
.btn.small { min-height: 38px; padding: 0 18px; font-size: 14px; }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.menu-toggle span, .menu-toggle span::before {
  position: absolute; left: 11px; width: 22px; height: 1px; background: var(--stone);
  transition: transform .3s, top .3s;
}
.menu-toggle span { top: 21px; }
.menu-toggle span::before { content: ""; left: 0; top: 7px; }
.menu-open .menu-toggle span { transform: rotate(45deg); }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(-90deg); }

@media (max-width: 1060px) {
  .menu-toggle { display: block; }
  .header-tools .btn { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    background: var(--walnut-deep);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 6px; padding: 0 var(--pad);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav a { font-family: var(--serif); font-size: clamp(34px, 9vw, 52px); color: var(--stone); line-height: 1.25; }
  .nav a[aria-current="page"]::after { bottom: 4px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  isolation: isolate; overflow: hidden;
}
.hero picture, .hero img.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
}
.hero img.hero-img { object-fit: cover; object-position: 50% 55%; animation: settle 2.2s cubic-bezier(.2,.7,.2,1) both; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(24, 19, 16, .92) 0%, rgba(24, 19, 16, .55) 34%, rgba(24, 19, 16, 0) 62%),
    linear-gradient(to bottom, rgba(24, 19, 16, .55) 0%, rgba(24, 19, 16, 0) 22%);
}
.hero-in { width: 100%; padding-bottom: clamp(40px, 8vh, 96px); padding-top: calc(var(--header-h) + 40px); }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 8.2vw, 124px); line-height: .98; letter-spacing: -.012em;
  margin: 0 0 28px; max-width: 12.5em;
}
.hero h1 .l { display: block; overflow: hidden; }
.hero h1 .l > span { display: block; animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 .l:nth-child(2) > span { animation-delay: .12s; }
.hero p.lead { max-width: 34em; color: rgba(232,225,213,.86); font-size: clamp(16px, 1.5vw, 19px); margin: 0 0 34px; animation: fade 1s .5s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: fade 1s .65s both; }
.hero-caption {
  position: absolute; right: var(--pad); bottom: clamp(40px, 8vh, 96px);
  font-size: 13px; color: var(--stone-dim); text-align: right;
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (max-width: 760px) { .hero-caption { display: none; } }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: clamp(72px, 11vw, 160px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05; letter-spacing: -.01em; margin: 0;
}
.muted { color: var(--stone-dim); }

/* intro */
.intro { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(36px, 7vw, 120px); align-items: start; }
.intro .statement { font-family: var(--serif); font-size: clamp(28px, 3.5vw, 50px); line-height: 1.18; margin: 0; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--stone-dim); font-size: 15px; }
.facts dd { margin: 0; font-weight: 400; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* work index */
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 5vw, 64px); }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(300px, 36vw, 540px); gap: clamp(14px, 2vw, 28px); }
.tile { position: relative; display: block; overflow: hidden; background: var(--walnut-lift); }
.tile:nth-child(1) { grid-column: span 7; }
.tile:nth-child(2) { grid-column: span 5; }
.tile:nth-child(3) { grid-column: span 5; }
.tile:nth-child(4) { grid-column: span 7; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.035); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(24,19,16,.82), rgba(24,19,16,0) 52%); }
.tile-cap { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.tile-cap h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1; margin: 0; }
.tile-cap span { font-size: 14px; color: var(--stone-dim); }
@media (max-width: 760px) {
  .tile:nth-child(n) { grid-column: span 12; }
  .work-grid { grid-auto-rows: 300px; }
}

/* process */
.process-head { max-width: 30em; margin-bottom: clamp(36px, 6vw, 80px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 28px clamp(16px, 2vw, 32px) 8px 0; border-top: 1px solid var(--line-strong); counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 38px; color: var(--brass); line-height: 1; margin-bottom: 22px; }
.steps h3 { font-weight: 500; font-size: 18px; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--stone-dim); font-size: 16px; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; } }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* services */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); }
.svc article { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.svc h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin: 0 0 14px; }
.svc p { margin: 0; color: var(--stone-dim); max-width: 28em; }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; } }

/* CTA */
.cta { text-align: left; }
.cta-in { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: end; }
.cta .h2 { font-size: clamp(40px, 6.6vw, 104px); }
.cta p { color: var(--stone-dim); max-width: 26em; margin: 0 0 28px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-in { grid-template-columns: 1fr; } }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding: calc(var(--header-h) + clamp(56px, 9vw, 130px)) 0 clamp(36px, 5vw, 64px); }
.page-head-in { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 10vw, 156px); line-height: .92; letter-spacing: -.015em; margin: 0; }
.page-head p { max-width: 25em; color: var(--stone-dim); margin: 0 0 8px; }

/* ---------- Galleries ---------- */
.group { padding-bottom: clamp(48px, 7vw, 96px); }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-strong); margin-bottom: clamp(20px, 3vw, 36px); }
.group-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 44px); margin: 0; line-height: 1.1; }
.group-head span { color: var(--stone-dim); font-size: 14px; }

.masonry { column-count: 3; column-gap: clamp(12px, 1.6vw, 24px); }
.masonry.cols-4 { column-count: 4; }
.shot {
  display: block; width: 100%; margin: 0 0 clamp(12px, 1.6vw, 24px);
  break-inside: avoid; background: var(--walnut-lift); border: 0; padding: 0;
  position: relative; overflow: hidden; cursor: zoom-in;
}
.shot img { width: 100%; height: auto; opacity: 0; transition: opacity .6s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.shot img.in { opacity: 1; }
.shot:hover img { transform: scale(1.025); }
@media (max-width: 1100px) { .masonry.cols-4 { column-count: 3; } }
@media (max-width: 820px) { .masonry, .masonry.cols-4 { column-count: 2; } }
@media (max-width: 480px) { .masonry, .masonry.cols-4 { column-count: 1; } }

/* before & after */
.ba-note { max-width: 36em; color: var(--stone-dim); margin: 0 0 clamp(24px, 4vw, 44px); }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 300; background: #181310;
  display: none; flex-direction: column;
}
.lb.open { display: flex; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad); font-size: 14px; color: var(--stone-dim); }
.lb-close { background: none; border: 1px solid var(--line-strong); height: 40px; padding: 0 18px; color: var(--stone); font-size: 14px; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 clamp(8px, 6vw, 96px) 24px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; background: none; border: 1px solid var(--line-strong); color: var(--stone); font-size: 20px; line-height: 1; }
.lb-nav:hover { border-color: var(--stone); }
.lb-prev { left: clamp(6px, 1.6vw, 24px); } .lb-next { right: clamp(6px, 1.6vw, 24px); }
@media (max-width: 700px) { .lb-nav { top: auto; bottom: 18px; transform: none; } .lb-stage { padding-bottom: 84px; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.founder { position: sticky; top: calc(var(--header-h) + 24px); }
.founder img { width: 100%; max-width: 440px; aspect-ratio: 600 / 782; object-fit: cover; }
.founder figcaption { margin-top: 16px; font-size: 15px; color: var(--stone-dim); }
.founder figcaption strong { color: var(--stone); font-weight: 400; display: block; font-size: 18px; }
.prose p { margin: 0 0 1.35em; max-width: 36em; }
.prose p.big { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.2; }
.prose h2 { margin: 1.6em 0 .6em; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .founder { position: static; } .founder img { max-width: 320px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 7vw, 120px); align-items: start; }
.details { margin: 0; }
.details div { padding: 18px 0; border-top: 1px solid var(--line); }
.details div:last-child { border-bottom: 1px solid var(--line); }
.details dt { color: var(--stone-dim); font-size: 14px; margin-bottom: 4px; }
.details dd { margin: 0; font-size: 18px; font-weight: 400; }
.details a:hover { color: var(--brass); }
.hours { font-size: 16px !important; color: var(--stone); }
.hours span { display: block; }
.map { margin-top: clamp(48px, 7vw, 96px); border: 1px solid var(--line); height: clamp(320px, 42vw, 520px); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) invert(.9) contrast(.9); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--stone-dim); }
.field input, .field textarea {
  width: 100%; background: transparent; color: var(--stone);
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  font: inherit; font-size: 18px; padding: 10px 0; outline: none;
  transition: border-color .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--brass); }
.field input::placeholder, .field textarea::placeholder { color: rgba(167,158,145,.5); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-msg { min-height: 1.6em; margin: 0; font-size: 15px; }
.form-msg.ok { color: #9ec59a; } .form-msg.err { color: #e59a8c; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.form-alt { font-size: 15px; color: var(--stone-dim); margin: 0; }
.form-alt a { color: var(--stone); border-bottom: 1px solid var(--line-strong); }

dialog.request {
  border: 1px solid var(--line-strong); background: var(--walnut-deep); color: var(--stone);
  padding: clamp(24px, 4vw, 48px); width: min(560px, calc(100vw - 32px));
  margin: auto;
}
dialog.request::backdrop { background: rgba(10, 8, 6, .72); backdrop-filter: blur(3px); }
dialog.request h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.05; margin: 0 0 8px; }
dialog.request .sub { color: var(--stone-dim); margin: 0 0 28px; }
.dlg-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; background: none; border: 0; color: var(--stone-dim); font-size: 26px; line-height: 1; }
.dlg-close:hover { color: var(--stone); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--walnut-deep); padding: clamp(48px, 7vw, 96px) 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.foot-grid img { height: 26px; width: auto; margin-bottom: 18px; }
.foot-grid h3 { font-size: 14px; font-weight: 400; color: var(--stone-dim); margin: 0 0 14px; }
.foot-grid p, .foot-grid li { margin: 0 0 6px; font-size: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid a:hover { color: var(--brass); }
.foot-note { margin-top: clamp(40px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--stone-dim); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* floating WhatsApp / Telegram for mobile */
.quick { position: fixed; right: 14px; bottom: 14px; z-index: 90; display: none; gap: 8px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.quick.show { opacity: 1; pointer-events: auto; }
.quick a { background: var(--stone); color: var(--walnut); min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; font-weight: 500; font-size: 15px; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
@media (max-width: 760px) { .quick { display: flex; } body { padding-bottom: 0; } .site-footer { padding-bottom: 88px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
