/* SYMMETRON 25 — design system.
   Tokens, resets and every component shared across templates: docking header,
   language switcher, footers, grid rules, scroll reveals and project cards. */

:root {
  --paper: #FAF8F3;
  --paper-2: #F3EEE3;
  --ink: #201B12;
  --mid: #7A7060;
  --hair: #E4DDCE;
  --brass-d: #6C4C11;
  --brass: #8A6A2E;
  --brass-l: #B0894C;
  --grad: linear-gradient(160deg, #B0894C 0%, #8A6A2E 45%, #6C4C11 100%);

  /* English typography. The Greek stack is swapped in on body.lang-el, one
     level down, so every var() consumer picks it up without duplication. */
  --grotesk: 'Archivo', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --mono: 'JetBrains Mono', monospace;

  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--grotesk);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Greek pages: Cormorant and Fira Sans cover Greek and Cyrillic, which
   Fraunces and Archivo do not. JetBrains Mono is shared. */
body.lang-el {
  --grotesk: 'Fira Sans', sans-serif;
  --serif: 'Cormorant', Georgia, serif;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brass); }
button { font: inherit; }

.brass-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 500;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 18px;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  color: var(--paper);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* A standing note the editor can set per page — the prototypes used it to flag
   placeholder imagery. Empty field, no badge. */
.demo-flag {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 200;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mid);
  background: rgba(250, 248, 243, .85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--hair);
  padding: 6px 10px;
  border-radius: 2px;
}

@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes heroImg { from { clip-path: inset(100% 0 0 0); transform: scale(1.12); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
@keyframes wmIn { from { opacity: 0; } to { opacity: .05; } }

/* ---------------------------------------------------------------- header -- */

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), background .3s, border-color .3s;
}
.site-head.docked {
  background: rgba(250, 248, 243, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.site-head.hidden { transform: translateY(-108%); }

/* The admin bar is fixed at the top for logged-in users, so the site header
   has to start below it or the two overlap. */
body.admin-bar .site-head { top: 32px; }

@media screen and (max-width: 782px) {
  body.admin-bar .site-head { top: 46px; }
}

.logo-lockup { height: 32px; width: auto; transition: height .3s; }
.site-head.docked .logo-lockup { height: 30px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
}

.nav {
  display: flex;
  gap: 34px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  list-style: none;
}
.nav a {
  position: relative;
  padding-bottom: 3px;
  display: inline-block;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--brass);
  transition: width .3s var(--ease);
}
.nav a:hover::after { width: 100%; }
.nav a.current,
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a { color: var(--brass); }
.nav a.current::after,
.nav .current-menu-item > a::after,
.nav .current_page_item > a::after,
.nav .current-menu-ancestor > a::after { width: 100%; }

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.lang a { color: var(--mid); }
.lang a:hover { color: var(--brass); }
.lang .is-current { color: var(--brass); }
.lang .sep { color: var(--hair); }

/* The home page fades the header in with the hero; inner pages have it
   present from the first paint. */
body.s25-home .logo-lockup {
  height: 34px;
  opacity: 0;
  animation: heroRise .8s var(--ease) .1s forwards;
}
body.s25-home .nav a {
  opacity: 0;
  animation: heroRise .8s var(--ease) forwards;
}
body.s25-home .nav li:nth-child(1) a { animation-delay: .2s; }
body.s25-home .nav li:nth-child(2) a { animation-delay: .28s; }
body.s25-home .nav li:nth-child(3) a { animation-delay: .36s; }
body.s25-home .nav a:hover { color: var(--ink); }

/* --------------------------------------------------------- shared layout -- */

.grid-rule {
  position: relative;
  height: 1px;
  background: var(--hair);
  margin: 0 var(--gutter);
}
.grid-rule span {
  position: absolute;
  top: 0;
  width: 1px;
  height: 0;
  background: var(--brass);
  opacity: .55;
  transition: height .55s var(--ease), top .55s var(--ease);
}
.grid-rule.lit span { height: 7px; top: -3px; }
.grid-rule.ticks-5 span:nth-child(1) { left: 0; transition-delay: .05s; }
.grid-rule.ticks-5 span:nth-child(2) { left: 25%; transition-delay: .13s; }
.grid-rule.ticks-5 span:nth-child(3) { left: 50%; transition-delay: .21s; }
.grid-rule.ticks-5 span:nth-child(4) { left: 75%; transition-delay: .29s; }
.grid-rule.ticks-5 span:nth-child(5) { left: 100%; transition-delay: .37s; }
.grid-rule.ticks-4 span:nth-child(1) { left: 0; transition-delay: .05s; }
.grid-rule.ticks-4 span:nth-child(2) { left: 33%; transition-delay: .15s; }
.grid-rule.ticks-4 span:nth-child(3) { left: 66%; transition-delay: .25s; }
.grid-rule.ticks-4 span:nth-child(4) { left: 100%; transition-delay: .35s; }
.grid-rule.ticks-3 span:nth-child(1) { left: 0; transition-delay: .05s; }
.grid-rule.ticks-3 span:nth-child(2) { left: 50%; transition-delay: .18s; }
.grid-rule.ticks-3 span:nth-child(3) { left: 100%; transition-delay: .31s; }

.section { padding: clamp(56px, 9vh, 110px) var(--gutter); }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(34px, 6vh, 60px);
  flex-wrap: wrap;
}
.sec-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sec-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
}
.sec-title {
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -.01em;
}

/* ------------------------------------------------------------ work cards -- */

.work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 4vw, 60px);
}
.project {
  grid-column: span 1;
  cursor: pointer;
  display: block;
}
.project.feature { grid-column: 1 / -1; }
.project .frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4/5;
}
.project.feature .frame { aspect-ratio: 16/8; }
.project .frame img,
.project .frame picture {
  width: 100%;
  height: 100%;
  display: block;
}
.project .frame img {
  object-fit: cover;
  filter: sepia(.1) saturate(.96) contrast(1.02) brightness(1.01);
  transform: scale(1.12);
  clip-path: inset(100% 0 0 0);
  transition: transform 1s var(--ease), filter .6s, clip-path 1.05s var(--ease);
}
.project.in .frame img { transform: scale(1); clip-path: inset(0 0 0 0); }
.project .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: .06;
  mix-blend-mode: multiply;
  transition: opacity .6s;
  pointer-events: none;
}
.project:hover .frame img { transform: scale(1.05); filter: sepia(0) saturate(1.03) contrast(1.02); }
.project:hover .frame::after { opacity: 0; }
.project .idx {
  position: absolute;
  top: 15px;
  left: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: #FAF8F3;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.project .view {
  position: absolute;
  bottom: 15px;
  right: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #FAF8F3;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.project:hover .view, .project:focus-visible .view { opacity: 1; transform: none; }
.project .meta {
  padding-top: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--hair);
}
.project .p-name {
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -.01em;
  transition: color .3s;
}
.project:hover .p-name { color: var(--brass); }
.project .p-loc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--mid);
  margin-top: 2px;
}
.p-dim {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--mid);
  text-align: right;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}
.p-dim .tick { display: flex; align-items: center; gap: 8px; }
.p-dim .tick::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--hair);
  transition: background .3s, width .3s;
}
.project:hover .p-dim .tick::before { background: var(--brass); width: 28px; }
.p-dim .role { color: var(--brass); }

/* ---------------------------------------------------------------- footer -- */

.foot {
  border-top: 1px solid var(--hair);
  padding: clamp(60px, 9vh, 110px) var(--gutter) 40px;
  position: relative;
  overflow: hidden;
}
.foot.foot-slim { padding: clamp(50px, 8vh, 90px) var(--gutter) 40px; }
.foot-cta {
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: clamp(30px, 6vw, 72px);
  letter-spacing: -.02em;
  line-height: 1.02;
  display: inline-flex;
  align-items: center;
  gap: .28em;
}
.foot-cta .arrow {
  font-family: var(--serif);
  font-weight: 300;
  transition: transform .4s var(--ease);
}
.foot-cta:hover .arrow { transform: translateX(14px); }
.foot-logo {
  height: 30px;
  width: auto;
  margin-top: 56px;
  opacity: .9;
}
.foot-slim .foot-logo { height: 26px; margin-top: 0; }
.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-top: 26px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mid);
}
.foot-slim .foot-grid { align-items: center; margin-top: 0; }
.foot-grid a:hover { color: var(--brass); }
.foot-links {
  display: flex;
  gap: 10px 26px;
  flex-wrap: wrap;
  text-transform: uppercase;
  list-style: none;
}

/* --------------------------------------------------------------- reveals -- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.dir-up { transform: translateY(-28px); }
.reveal.in { opacity: 1; transform: none; }

/* No JS: never leave content invisible. */
.no-js .reveal { opacity: 1; transform: none; }

/* ----------------------------------------------------- interaction layer -- */

::selection { background: var(--brass); color: var(--paper); }
html { scrollbar-color: var(--brass) var(--paper-2); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(160deg, #B0894C, #6C4C11);
  border: 3px solid #F3EEE3;
  border-radius: 20px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 1px;
}
main:focus { outline: none; }

/* Read-depth indicator. */
.sym-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 120;
  background: linear-gradient(90deg, #B0894C, #6C4C11);
  transition: width .1s linear;
  pointer-events: none;
}

/* Page-transition curtain. */
.sym-curtain {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  transition: transform .62s cubic-bezier(.76, 0, .24, 1);
  pointer-events: none;
}
.sym-curtain.up { transform: translateY(-101%); }
.sym-curtain.down { transform: translateY(0); pointer-events: all; }
.sym-curtain .mk {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--brass-l);
  opacity: .9;
  text-align: center;
}
.sym-curtain .mk b {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 30px;
  letter-spacing: -.01em;
  color: var(--paper);
  text-transform: none;
  margin-top: 10px;
}

/* Reactive cursor (pointer-fine devices only). */
body.sym-cursor,
body.sym-cursor a,
body.sym-cursor button,
body.sym-cursor input,
body.sym-cursor select,
body.sym-cursor textarea,
body.sym-cursor label { cursor: none; }
.sym-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass-d);
  z-index: 410;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.sym-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(138, 106, 46, .55);
  z-index: 409;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .28s ease, height .28s ease, background .28s ease, border-color .28s ease;
  will-change: transform;
}
.sym-ring.grow {
  width: 58px;
  height: 58px;
  background: rgba(138, 106, 46, .08);
  border-color: rgba(138, 106, 46, .8);
}
.sym-ring.hide, .sym-dot.hide { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .sym-curtain { transition: none; }
}

/* ----------------------------------------------------------- fallbacks --- */

.s25-blank {
  min-height: 60vh;
  padding: clamp(120px, 20vh, 180px) var(--gutter) clamp(56px, 9vh, 110px);
}
.s25-blank h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 7vw, 92px);
  line-height: .98;
  letter-spacing: -.02em;
}
.s25-blank .lead {
  max-width: 46ch;
  color: var(--mid);
  font-size: 15.5px;
  line-height: 1.65;
  margin-top: 26px;
}
.s25-blank .back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--brass);
  padding: 14px 22px;
  border-radius: 2px;
  transition: background .35s, color .35s, gap .35s var(--ease);
}
.s25-blank .back:hover {
  background: var(--grad);
  color: #FAF8F3;
  border-color: transparent;
  gap: 18px;
}
.s25-prose { max-width: 68ch; }
.s25-prose p, .s25-prose ul, .s25-prose ol { color: var(--mid); font-size: 15.5px; line-height: 1.72; margin-bottom: 18px; }
.s25-prose h2, .s25-prose h3 { font-family: var(--grotesk); font-weight: 600; letter-spacing: -.01em; margin: 34px 0 12px; }
.s25-prose a { color: var(--brass); }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 860px) {
  .work { grid-template-columns: 1fr; gap: 40px; }
  .project.feature .frame { aspect-ratio: 4/5; }
}

@media (max-width: 440px) {
  .nav { gap: 16px; font-size: 11px; }
  .logo-lockup, body.s25-home .logo-lockup { height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .nav a,
  .logo-lockup { opacity: 1 !important; transform: none !important; }
  .project .frame img { clip-path: none !important; transform: none !important; }
  .grid-rule span { height: 7px !important; top: -3px !important; }
}
