@import url("fonts.css");

:root {
  --paper: #f3eee6;
  --paper-2: #e8e1d4;
  --ink: #16130f;
  --ink-soft: #3c352d;
  --muted: #5c534a;
  --brass: #8a6a3b;
  --brass-deep: #6e5228;
  --line: rgba(22, 19, 15, 0.14);
  --cream: #f7f3ec;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --header: 6.6rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus { outline: none; }

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--cream);
  padding: .6rem 1rem;
  z-index: 40;
  text-decoration: none;
}

.skip:focus { transform: none; }

.wrap { width: var(--wrap); margin-inline: auto; }

.eyebrow {
  margin: 0 0 .8rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }

p { margin: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 238, 230, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  width: min(1200px, calc(100% - 1.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand langs"
    "nav nav";
  align-items: center;
  gap: .2rem 1rem;
  padding: .7rem 0 .55rem;
}
.brand { grid-area: brand; }
.langs { grid-area: langs; justify-self: end; }
.nav { grid-area: nav; }

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .04em;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-sub {
  display: block;
  margin-top: .2rem;
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1.05rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: .15rem;
}

.nav::-webkit-scrollbar { display: none; }

.nav a {
  flex: none;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: .35rem 0;
}

.nav a:hover { color: var(--ink); }

.langs {
  display: flex;
  align-items: center;
  justify-self: end;
}

.langs a {
  min-width: 2.6rem;
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--muted);
}

.langs a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--brass);
}

.langs a:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(38rem, calc(100svh - var(--header)));
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 11, 8, .55) 0%, rgba(14, 11, 8, .12) 58%, rgba(14, 11, 8, .05) 100%),
    linear-gradient(180deg, rgba(14, 11, 8, .18) 0%, rgba(14, 11, 8, .05) 30%, rgba(14, 11, 8, .78) 100%);
}

.hero-copy {
  width: var(--wrap);
  margin: 0 auto 2.4rem;
  padding-top: 4rem;
}

.hero .eyebrow { color: #e4d3b4; }

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 12vw, 7.4rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -0.035em;
  max-width: 11ch;
}

.hero-role {
  margin-top: 1rem;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, .82);
}

.hero-promise {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .75rem;
  margin-top: 1.7rem;
}
.hero-actions .btn { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: .8rem 1.2rem;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.btn-solid {
  background: var(--cream);
  color: var(--ink);
}

.btn-solid:hover { background: #fff; }

.btn-line {
  border-color: rgba(247, 243, 236, .7);
  color: var(--cream);
  background: transparent;
}

.btn-line:hover { background: rgba(247, 243, 236, .1); }

.btn-ink {
  background: var(--ink);
  color: var(--cream);
}

.btn-ink:hover { background: #2a241c; }

.btn-brass {
  background: transparent;
  color: var(--cream);
  border-color: #d7c09a;
}

.btn-brass:hover { background: rgba(215, 192, 154, .12); }

.hero-meta {
  margin-top: 1.15rem;
  font-size: .86rem;
  color: rgba(247, 243, 236, .78);
}

.hero-credit {
  margin: 1.5rem 0 0;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, .7);
}
section[id] { scroll-margin-top: calc(var(--header) + .4rem); }
.contact-card strong { overflow-wrap: break-word; }
.contact-card.is-email strong {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  letter-spacing: 0;
}

/* Sections */
.section { padding: 4.5rem 0; }

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: .95;
  max-width: 14ch;
}

.lead {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.services { border-top: 1px solid var(--line); }

.service-grid {
  display: grid;
  gap: 0;
  margin-top: 2.6rem;
}

.service {
  padding: 1.6rem 0 1.8rem;
  border-top: 1px solid var(--line);
}

.service-no {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--brass);
  line-height: 1;
  margin-bottom: .7rem;
}

.service h3 {
  margin: 0 0 .6rem;
  font-size: 2rem;
  line-height: 1;
}

.service p { color: var(--ink-soft); max-width: 36rem; }

/* Portfolio */
.portfolio {
  display: grid;
  background: var(--paper-2);
}

.portfolio-media {
  min-height: 18rem;
  position: relative;
}

.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 18rem;
  max-height: 32rem;
}

.portfolio-copy {
  padding: 3rem 1.25rem 3.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-copy .wrap-inner { width: min(34rem, 100%); }

.portfolio h2 { max-width: 12ch; }

.portfolio .lead { margin-bottom: 1.6rem; }

.note {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--muted);
}

/* About */
.about { background: var(--paper); }

.about-grid {
  display: grid;
  gap: 2.2rem;
}

.about-prose p + p { margin-top: 1rem; }

.about-prose p { color: var(--ink-soft); max-width: 38rem; }

.facts { margin: 0; display: grid; gap: 0; }

.facts div {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: .3rem;
}

.facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.25;
}

.facts a { text-decoration: none; border-bottom: 1px solid rgba(138, 106, 59, .45); }

.facts a:hover { border-bottom-color: var(--ink); }

/* Contact */
.contact {
  background: var(--ink);
  color: var(--cream);
}

.contact .eyebrow { color: #d7c09a; }

.contact h2 { max-width: 12ch; }

.contact .lead { color: rgba(247, 243, 236, .78); }

.contact-grid {
  display: grid;
  gap: .75rem;
  margin-top: 2.2rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.15rem 1.1rem 1.2rem;
  text-decoration: none;
  border: 1px solid rgba(247, 243, 236, .16);
  min-height: 7.2rem;
  justify-content: flex-end;
}

.contact-card:hover { border-color: #d7c09a; }

.contact-card span {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #d7c09a;
}

.contact-card strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  background: #100e0c;
  color: rgba(247, 243, 236, .72);
  padding: 2.4rem 0 2.6rem;
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
}

.site-footer strong {
  display: block;
  color: var(--cream);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .72rem;
  margin-bottom: .45rem;
}

.site-footer a { color: var(--cream); }

.fine {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(247, 243, 236, .12);
  font-size: .82rem;
  color: rgba(247, 243, 236, .58);
}

.fine p + p { margin-top: .7rem; }

.fine a { color: rgba(247, 243, 236, .8); }

/* Gate */
.gate {
  min-height: 100svh;
  background: #100e0c;
  color: var(--cream);
  display: grid;
  align-items: end;
}

.gate-media {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.gate-shade {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, .35), rgba(12, 10, 8, .2) 30%, rgba(12, 10, 8, .82)),
    linear-gradient(90deg, rgba(12, 10, 8, .55), rgba(12, 10, 8, .1));
}

.gate-panel {
  position: relative;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 12vh 0 8vh;
}

.gate .eyebrow { color: #e4d3b4; }

.gate h1 {
  margin: 0;
  font-size: clamp(4rem, 14vw, 8.2rem);
  line-height: .86;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.gate-role {
  margin-top: 1.1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .75rem;
  color: rgba(247, 243, 236, .78);
}

.gate-hints {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .7rem;
  font-size: .95rem;
  color: rgba(247, 243, 236, .8);
}

.gate-langs {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 28rem;
}

.gate-langs a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  text-decoration: none;
  border-top: 1px solid rgba(247, 243, 236, .28);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1;
}

.gate-langs li:last-child a { border-bottom: 1px solid rgba(247, 243, 236, .28); }

.gate-langs small {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e4d3b4;
}

.gate-langs a:hover small,
.gate-langs a:hover { color: #fff; }

@media (min-width: 720px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .service { padding-right: 1.2rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: start; }
  .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; }
  .portfolio-copy { padding: 3.5rem 3rem; }
}

@media (min-width: 880px) {
  :root { --header: 4.6rem; }

  .header-inner {
    display: flex;
    height: var(--header);
    padding: 0;
    width: min(1200px, calc(100% - 4rem));
  }
  .brand { order: 1; }
  .nav {
    order: 2;
    margin-left: auto;
    margin-right: 1.1rem;
    overflow: visible;
    padding: 0;
    gap: 1.4rem;
  }
  .langs { order: 3; }

  .portfolio { grid-template-columns: 1.15fr .85fr; min-height: 42rem; }
  .portfolio-media img { max-height: none; height: 100%; min-height: 42rem; }
  .hero-actions { flex-direction: row; align-items: center; }
  .hero-actions .btn { width: auto; }
  .hero-copy { margin-bottom: 4rem; }
  .section { padding: 6.2rem 0; }
}

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

@media print {
  .site-header { position: static; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
