/* ---------- Fonts (self-hosted Inter, latin + greek) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-greek-wght-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-greek-wght-italic.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #12100e;
  --bg-raised: #1a1714;
  --text: #efe9e1;
  --muted: #a99f92;
  --faint: #6f675d;
  --gold: #c4a265;
  --gold-strong: #d4b277;
  --line: rgba(239, 233, 225, 0.12);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Full-page, subtle structural background (fixed layer; works on iOS unlike background-attachment) */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.page-bg::before {
  content: "";
  position: absolute;
  inset: -2%;
  background: url("/assets/img/bg-rebar.webp") center / cover no-repeat;
  filter: grayscale(.35) sepia(.35) contrast(1.05) brightness(.9);
  opacity: .2;
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 70% 20%, transparent 0%, rgba(18, 16, 14, .55) 60%, rgba(18, 16, 14, .9) 100%),
    linear-gradient(180deg, rgba(18, 16, 14, .2) 0%, rgba(18, 16, 14, .75) 100%);
}

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow { color: var(--muted); }
.eyebrow .num { color: var(--gold); font-variant-numeric: tabular-nums; }


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: stretch;
  min-height: 54px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
}
.btn > span:first-child { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; }
.btn-arrow {
  display: grid; place-items: center;
  width: 54px;
  border-left: 1px solid rgba(23, 19, 13, .25);
  transition: background .25s var(--ease);
}
.btn-gold { background: var(--gold); color: #17130d; }
.btn-gold:hover { background: var(--gold-strong); }
.btn-gold:hover .btn-arrow { background: rgba(23, 19, 13, .08); }
.btn-ghost { border-color: rgba(239, 233, 225, .28); color: var(--text); background: rgba(18, 16, 14, .3); }
.btn-ghost > span:first-child, .btn-ghost:not(:has(> span)) { padding: 0 24px; }
.btn-ghost { align-items: center; gap: 10px; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  font-size: 15px;
  color: var(--text);
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.link-underline:hover::after { transform: scaleX(.35); }

/* Serif accent */
.serif {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(18, 16, 14, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px; height: 42px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.brand-mark i { font-weight: 300; margin: 0 1px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: .14em; }
.brand-sub { font-size: 10.5px; letter-spacing: .28em; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 15px; color: rgba(239, 233, 225, .85); transition: color .2s, border-color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-call {
  display: inline-flex; align-items: center; gap: 10px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  color: var(--text) !important;
}
.nav-call svg { color: var(--gold); }
.nav-call:hover { color: var(--gold) !important; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--text); cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span + span { margin-top: 6px; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 820px) {
  :root { --nav-h: 68px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(18, 16, 14, .97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { background: rgba(18, 16, 14, .97); }
  .nav.is-open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { display: block; padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav-call { display: flex; padding-left: 0; border-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-h);
  position: relative;
}
.hero::before {
  /* lifts the background a little more in the hero only */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 70% at 85% 25%, rgba(196, 162, 101, .10), transparent 70%);
}
.hero-main { flex: 1; display: flex; align-items: flex-end; padding-block: 56px clamp(48px, 7vh, 88px); }

.coords {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  margin: 0 0 clamp(28px, 4vh, 44px);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.crosshair { position: relative; width: 14px; height: 14px; flex: none; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--gold); }
.crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.crosshair::after { top: 50%; left: 0; right: 0; height: 1px; }
.coords-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }

.hero h1 {
  margin: 0 0 clamp(40px, 6vh, 64px);
  font-size: clamp(42px, 6.8vw, 96px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.04em;
  max-width: 14ch;
}
.hero h1 .serif { display: block; font-size: 1.08em; line-height: .95; color: var(--gold-strong); letter-spacing: -.015em; }

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-lede { max-width: 36em; margin: 0; font-size: clamp(16px, 1.3vw, 18px); color: rgba(239, 233, 225, .78); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
@media (max-width: 860px) { .hero-foot { grid-template-columns: 1fr; } }

/* Title block: like the stamp in the corner of a drawing sheet */
.hero-strip { border-top: 1px solid var(--line); background: rgba(18, 16, 14, .45); }
.title-block {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}
.title-block div { padding: 18px 20px; border-left: 1px solid var(--line); }
.title-block div:first-child { border-left: 0; padding-left: 0; }
.title-block dt { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.title-block dd { margin: 0; font-size: 14.5px; color: rgba(239, 233, 225, .88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title-block a:hover { color: var(--gold); }
@media (max-width: 760px) {
  .title-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-block div { padding: 14px 16px; }
  .title-block dd { white-space: normal; overflow-wrap: anywhere; }
  .title-block div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .title-block div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(88px, 12vw, 160px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-title {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -.035em;
}
.section-title .serif { font-size: 1.08em; color: var(--gold-strong); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.portrait { position: relative; margin: 0; }
.portrait::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
  opacity: .7;
}
.portrait img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  filter: saturate(.85) contrast(1.02);
}
.about-body p { color: rgba(239, 233, 225, .78); margin: 0 0 20px; max-width: 34em; }
.about-body .section-title { margin-bottom: 28px; }
.credentials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.credentials div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.credentials div:nth-child(odd) { padding-right: 24px; }
.credentials dt { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.credentials dd { margin: 0; font-size: 16px; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; margin-right: 18px; }
}

/* Work carousel */
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.carousel-controls { display: flex; align-items: center; gap: 16px; }
.carousel-count { font-size: 13px; letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.carousel-count b { color: var(--text); font-weight: 600; }
.icon-btn {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  background: transparent;
  border: 1px solid rgba(239, 233, 225, .28);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, color .2s, opacity .2s;
}
.icon-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.icon-btn:disabled { opacity: .3; cursor: default; }

.carousel {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; height: clamp(360px, 62vh, 680px); background: var(--bg-raised); overflow: hidden; }
.carousel img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform 1.2s var(--ease); }
.carousel figure:hover img { transform: scale(1.025); }
@media (max-width: 620px) {
  .carousel figure { height: auto; width: 86vw; aspect-ratio: 4 / 5; }
  .carousel img { width: 100%; height: 100%; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 112px); }
.contact-intro p { color: rgba(239, 233, 225, .78); margin: 28px 0 36px; max-width: 28em; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list .row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 26px 0;
}
.contact-list .label { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.contact-list .value { font-size: clamp(18px, 2vw, 24px); font-weight: 500; letter-spacing: -.01em; overflow-wrap: anywhere; }
.contact-list .go { color: var(--faint); transition: color .2s, transform .25s var(--ease); }
.contact-list a:hover .value { color: var(--gold); }
.contact-list a:hover .go { color: var(--gold); transform: translate(3px, -3px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .contact-list a, .contact-list .row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 20px 0; }
  .contact-list .label { grid-column: 1 / -1; }
}

/* Footer */
.footer { border-top: 1px solid var(--line); background: rgba(18, 16, 14, .6); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 28px; font-size: 13px; color: var(--muted); }
.footer a:hover { color: var(--gold); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: var(--gutter); }
.notfound h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.04em; margin: 0 0 16px; }
.notfound p { color: var(--muted); margin: 0 0 32px; }
