/* Erdoğan Mimarlık — final design (design A of the review round, 2026-11-19).
   Brand: black, white, greys, Poppins, the signature logo, outlined pills.
   The page is one drawing sheet: axes A and B run down the whole page, boxes sit on the axes,
   text sits one inset inside them, every section starts on a numbered axis, and the page ends
   with the title block of the drawing. The hero shows the office.
   Every component reads colour from the tokens below, so it works on the dark and the paper band. */

/* ---------- Fonts (own files, tools/build_fonts.py; SIL Open Font License) ---------- */
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Ms Madi"; font-weight: 400; font-display: swap; src: url("fonts/ms-madi-400.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --text: "Poppins", system-ui, sans-serif;
  --header-h: 88px;
  --ax: max(8%, calc((100% - 1320px) / 2));   /* x of axis A; axis B mirrors it */
  --inset: 28px;                               /* text sits this far inside an axis */
  --sec: clamp(88px, 9vw, 132px);              /* section padding, top and bottom */
  --axis: rgba(255, 255, 255, .17);
  --ease: cubic-bezier(.5, 0, .2, 1);
}

/* Dark band */
:root, .band-main, .band-end {
  --ground: #000; --ink: #fff; --ink-2: #dcdcdc; --mute: #9b9b9b; --mute-2: #777;
  --rule: rgba(255, 255, 255, .14); --rule-2: rgba(255, 255, 255, .42); --tint: rgba(255, 255, 255, .035);
  --veil: rgba(0, 0, 0, .9); --sign: none; --body-w: 300;
  color-scheme: dark;
}
/* Paper band */
.band-alt {
  --ground: #f4f3ed; --ink: #0b0b0b; --ink-2: #2b2a27; --mute: #6b6a65; --mute-2: #8b8a84;
  --rule: rgba(0, 0, 0, .13); --rule-2: rgba(0, 0, 0, .5); --tint: rgba(0, 0, 0, .03);
  --veil: rgba(244, 243, 237, .92); --sign: invert(1); --body-w: 400;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: var(--body-w) 16px/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
  counter-reset: axis;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { padding-inline: var(--ax); }
.band-main, .band-alt, .band-end { background: var(--ground); color: var(--ink); font-weight: var(--body-w); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* Sections get focus from links that lead to them (main.js goTo); the page scroll shows where. */
main section[tabindex="-1"]:focus { outline: 0; }

/* ---------- Shared type ---------- */
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 24px 48px;
  padding-inline: var(--inset); margin-bottom: clamp(36px, 4vw, 56px);
}
.sec-title { font: 500 clamp(30px, 3.3vw, 48px)/1.1 var(--text); letter-spacing: -.025em; text-wrap: balance; }
.sec-lead { max-width: 46ch; color: var(--mute); justify-self: end; text-wrap: pretty; }
.eyebrow, .kicker, .block-label {
  font: 500 12px/1.2 var(--text); letter-spacing: .24em; text-transform: uppercase; color: var(--mute);
}
.eyebrow { text-align: center; }

/* Outlined pill, the brand button */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  border: 1px solid currentColor; border-radius: 999px; background: transparent; color: var(--ink);
  font: 500 14px/1 var(--text); letter-spacing: .02em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.pill:hover, .pill:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.pill-solid { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.pill-solid:hover, .pill-solid:focus-visible { background: transparent; color: var(--ink); }
.pill-sm { min-height: 40px; padding: 0 20px; font-size: 13px; }
/* A focused pill is filled with the ink colour, so a ring in the text colour would vanish. */
.pill:focus-visible, .filter:focus-visible { outline-color: var(--ink); }

/* A ruled block: cells divided by hairlines, a stronger line around it (title block, form, types). */
.ruled { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule-2); }
.ruled > * { background: var(--ground); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled {
  background: var(--veil); border-bottom-color: var(--rule);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 36px; height: var(--header-h); padding-inline: clamp(20px, 3.3vw, 48px); }
.brand img { width: auto; height: 58px; filter: var(--sign); }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a {
  font: 600 12.5px/1 var(--text); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; opacity: .82; transition: opacity .2s;
}
.nav a:hover, .nav a:focus-visible { opacity: 1; }
.lang { display: flex; align-items: center; gap: 2px; }
.lang button {
  padding: 8px 6px; border: 0; background: none; cursor: pointer;
  font: 600 12px/1 var(--text); letter-spacing: .1em; opacity: .6;   /* .6 on black = 7:1 */
}
.lang button[aria-pressed="true"] { opacity: 1; }
.lang button:hover { opacity: .85; }
/* The slash is decoration: the second rule gives it no text for screen readers ("EN", not "/EN"). */
.lang button + button::before { content: "/"; content: "/" / ""; margin-right: 8px; opacity: .5; }
/* Small menu: only at 900 px and narrower (see "Small menu" below). Wider, the menu box has no box
   of its own: the sections and the language switch are items of the header row. */
.menu { display: contents; }
.menu-btn { display: none; }

/* ---------- Signature boxes ----------
   main.js writes the signature on a canvas; the image stays for screen readers and as the
   fallback (no WebGL, reduced motion, slow load). */
.write { position: relative; }
.write img { width: 100%; height: auto; filter: var(--sign); }
.js .write img { opacity: 0; }
.write.is-still img { opacity: 1; }
.write canvas { position: absolute; inset: 0; width: 100%; height: 100%; filter: var(--sign); }

/* ---------- The drawing sheet ----------
   Axes A and B: a fixed layer over the band colours and under the content. Difference blending
   keeps them a faint line on black and on paper. */
.sheet-axes { position: fixed; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: difference; }
.axis { position: absolute; }
.axis-v { top: 0; bottom: 0; border-left: 1px dashed var(--axis); transform-origin: top; animation: axis-v 1.6s var(--ease) both; }
.axis-a { left: var(--ax); }
.axis-b { right: var(--ax); }
main section:not(.hero)::after {
  position: absolute; display: grid; place-items: center;
  width: 30px; height: 30px; border: 1px solid var(--rule-2); border-radius: 50%;
  font: 500 12px/1 var(--text); color: var(--mute); background: var(--ground);
}
@keyframes axis-v { from { transform: scaleY(0); } }

/* Every section after the hero starts on a numbered axis. */
main section:not(.hero) { position: relative; }
main section:not(.hero)::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 1px dashed var(--rule-2); opacity: .45;
}
main section:not(.hero)::after { counter-increment: axis; content: counter(axis); left: 10px; top: -15px; z-index: 3; }
/* Content above the axes. */
main section:not(.hero) > *, .site-footer .wrap { position: relative; z-index: 2; }

/* ---------- Intro ----------
   First visit only, never with reduced motion (the head script in index.html decides): the
   signature writes itself in the middle of the sheet, then moves into the header logo's place
   while the hero appears. */
.intro { display: none; }
.is-intro .intro, .intro-flying .intro { display: block; position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.intro-sign {
  --w: min(46vw, 600px);
  position: absolute; width: var(--w);
  left: calc(50% - var(--w) / 2); top: calc(50% - var(--w) * .289);
  transform-origin: 0 0;
}
.is-intro .brand, .intro-flying .brand { opacity: 0; }
/* .menu > *: on a computer the menu box has no box, so its own opacity would not hide its items. */
.header-inner > *:not(.brand), .menu > * { transition: opacity .8s ease .2s; }
.is-intro .header-inner > *:not(.brand), .is-intro .menu > * { opacity: 0; }

/* ---------- Hero ----------
   Photos of the office (tools/build_office.py), full screen: chosen on 2026-11-20 from three layouts
   (the other two are kept in ../design-final-hero-layouts). A dark fade sits only where text sits:
   under the header, at the bottom and on the left. The caption row names the room on show (a link to
   the office section) and holds the slide controls. Upright screens: the photo takes the top three
   quarters and fades into black under the text. */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100vh; height: 100svh; min-height: 560px;
  padding: var(--header-h) calc(var(--ax) + var(--inset)) 0;
}
.hero > * { position: relative; z-index: 2; }
.hero > .room {
  position: absolute; inset: 0; z-index: 1; background: #000;
  clip-path: inset(0); transition: clip-path 1.2s var(--ease) .05s;
}
.room::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 62%),
              linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .12) 42%, rgba(0, 0, 0, .9));
}
.slides { position: absolute; inset: 0; overflow: hidden; }
.slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.045);
  transition: opacity 1.4s ease, transform 9s linear;
}
.slides img.is-on { opacity: 1; transform: none; }

.hero-text { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 30px; }
.hero-copy { min-width: 0; }
.hero h1 { margin-top: 18px; font: 500 clamp(28px, 3.5vw, 54px)/1.08 var(--text); letter-spacing: -.03em; text-wrap: balance; }
.hero-lead { margin-top: 18px; max-width: 44ch; color: var(--ink-2); text-wrap: pretty; }
.hero-cta { display: flex; flex: none; flex-wrap: wrap; gap: 10px; }
.hero-text, .hero-cap { transition: opacity .9s ease .45s, transform .9s ease .45s; }

.hero-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; border-top: 1px solid rgba(255, 255, 255, .3);
}
.room-tag {
  display: inline-flex; align-items: baseline; gap: 12px; min-width: 0; padding: 12px 0;
  color: var(--ink); font-size: 13px; line-height: 1.3; text-decoration: none;
}
.room-tag b { font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.room-tag span { color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .25s; }
.room-tag em { font-style: normal; transition: transform .25s; }
.room-tag:hover span, .room-tag:focus-visible span { color: var(--ink); }
.room-tag:hover em { transform: translateX(4px); }
.dots { display: flex; flex: none; margin-right: -9px; }
.dots button { width: 30px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--ink); transition: background-color .3s; }
.dots button[aria-current="true"]::before { background: var(--ink); }
/* Pause: two bars; when pressed, a play triangle. */
.dots [data-pause] { margin-right: 4px; }
.dots [data-pause]::before { width: 9px; height: 10px; border: 0; border-inline: 3px solid var(--ink); background: none; }
.dots [data-pause][aria-pressed="true"]::before { border: 0; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.dots button:focus-visible { outline: 2px solid var(--ink); outline-offset: -5px; }

/* Intro: while the signature moves into the header, the photo opens from the middle and the text
   comes in. */
.is-intro .room { clip-path: inset(50% 50% 50% 50%); }
.is-intro .hero-text, .is-intro .hero-cap { opacity: 0; transform: translateY(12px); }

/* Narrower screens: the buttons go under the text. */
@media (max-width: 1080px) {
  .hero-text { flex-direction: column; align-items: flex-start; gap: 0; }
  .hero-cta { margin-top: 24px; }
}
/* Upright screens: the photo takes the top three quarters and fades into black under the text. */
@media (max-width: 720px), (max-aspect-ratio: 1/1) {
  .hero { height: auto; min-height: 100vh; min-height: 100svh; padding-top: 0; }
  .hero > .room { bottom: auto; height: 74%; }
  .slides { bottom: 2px; }   /* the photo's last row of pixels showed as a light line under the fade */
  .room::after { background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .3) 48%, rgba(0, 0, 0, .86) 74%, #000); }
  .hero-text { padding-top: 55vh; padding-top: 55svh; }
}
/* Phones on their side: the text sets the height, so the heading stays on the first screen. */
@media (min-width: 640px) and (max-height: 500px) {
  .hero { height: auto; min-height: 100vh; min-height: 100svh; }
  .hero h1 { margin-top: 10px; font-size: 24px; }
  .hero-lead { margin-top: 10px; font-size: 14.5px; line-height: 1.55; }
  .hero-cta { margin-top: 16px; }
  .hero-cta .pill { min-height: 44px; padding: 0 20px; }
}
/* Phones: the six controls (24 x 40 px each, the WCAG 2.2 minimum is 24 x 24) leave room only for
   the room's name; it still leads to the office section. */
@media (max-width: 480px) {
  .room-tag b { display: none; }
  .dots { margin-right: -7px; }
  .dots button { width: 24px; }
}
@media (max-width: 360px) { .room-tag em { display: none; } }

/* ---------- Figures and client logos ---------- */
.clients { padding: 0 0 clamp(72px, 7vw, 104px); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 44px; padding-bottom: clamp(64px, 7vw, 96px); }
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 2px var(--inset) 4px; border-left: 1px solid var(--rule); }
.fact:first-child { border-left: 0; }   /* axis A is its line */
.fact dd { display: flex; align-items: flex-end; min-height: 44px; font: 500 clamp(26px, 2.5vw, 36px)/1.1 var(--text); letter-spacing: -.025em; white-space: nowrap; }
.fact dd small { margin-left: .22em; font-size: .56em; font-weight: 500; letter-spacing: 0; }
.fact .fact-text { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.25; letter-spacing: -.015em; white-space: normal; padding-bottom: 3px; }
.fact dt { font-size: 14px; line-height: 1.5; color: var(--mute); max-width: 28ch; }

.marquee {
  margin-top: 44px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 88px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track, .marquee-track.is-off, .marquee-track.is-held { animation-play-state: paused; }
.marquee-track li { flex: none; }
.marquee-track img { height: 44px; width: auto; max-width: 190px; object-fit: contain; opacity: .72; filter: var(--sign); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Renders ---------- */
.work { padding: clamp(64px, 6vw, 88px) 0 var(--sec); }
.work-head { position: relative; height: 176px; }
.note {
  position: absolute; left: calc(var(--ax) + 122px); top: 6px;
  font: 400 50px/1 "Ms Madi", cursive;
  transform: rotate(-7deg); transform-origin: left center;
  white-space: nowrap;
}
.note-arrow {
  position: absolute; left: calc(var(--ax) - 4px); top: 18px;
  width: 150px; height: auto; overflow: visible;
  fill: none; stroke: var(--mute-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.note-arrow path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .note-arrow path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); }
.js .note-arrow .head { transition-duration: .35s; transition-delay: 1.25s; }
.js .note-arrow.is-in path { stroke-dashoffset: 0; }

.work-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 12px; padding: 24px 12px 0; }
/* Examples of the office's work: renders to look at. They link nowhere; on a computer the name
   shows in the section cut below, on a phone in the caption. */
.tile { grid-column: span 2; margin: 0; }
.tile-lg { grid-column: span 3; }
.tile-img { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: var(--tint); }
.tile-lg .tile-img { aspect-ratio: 3 / 2; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 4px 0; }
.tile-cap b { font-weight: 500; font-size: 17px; }
.tile-cap span { color: var(--mute); font-size: 14px; }
/* Section cut (devices with a mouse only): on hover the render splits along a dashed section line
   that carries the project name. main.js adds the lower half and the cut line. Phones keep the captions. */
@media (hover: hover) and (pointer: fine) {
  .cut-ready .tile-img { overflow: visible; background: none; border-radius: 0; }
  .cut-ready .tile-img img { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  .cut-ready .tile-img .top { clip-path: inset(0 0 50% 0 round 6px 6px 0 0); }
  .cut-ready .tile-img .bottom { clip-path: inset(50% 0 0 0 round 0 0 6px 6px); }
  .cut-ready:hover .top, .cut-ready:focus-visible .top { transform: translateY(-24px); }
  .cut-ready:hover .bottom, .cut-ready:focus-visible .bottom { transform: translateY(24px); }
  .cut {
    position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
    display: flex; align-items: baseline; gap: 14px;
    opacity: 0; transition: opacity .3s ease; pointer-events: none;
  }
  .cut-ready:hover .cut, .cut-ready:focus-visible .cut { opacity: 1; transition-delay: .15s; }
  .cut::before, .cut::after { content: ""; flex: 1 0 14px; align-self: center; border-top: 1px dashed var(--rule-2); }
  /* On a narrow tile the type shortens first, then the name, with an ellipsis. */
  .cut b, .cut span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .cut span { flex-shrink: 4; }
  @media (max-width: 1100px) {   /* narrow tiles: the name alone */
    .cut { gap: 10px; }
    .cut span { display: none; }
    .cut b { font-size: 13px; }
    .cut::before, .cut::after { flex-basis: 8px; }
  }
  .cut::before { border-left: 1px solid var(--ink); height: 10px; margin-top: 10px; }
  .cut::after { border-right: 1px solid var(--ink); height: 10px; margin-top: 10px; }
  .cut b { font-weight: 500; font-size: 15px; white-space: nowrap; }
  .cut span { color: var(--mute); font-size: 13px; white-space: nowrap; }
  .cut-ready .tile-cap {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .work-grid { row-gap: 56px; }
}
.work-more { margin-top: clamp(48px, 5vw, 72px); text-align: center; }

/* ---------- Building types ---------- */
.types { padding: var(--sec) 0; }
.types-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Each cell spans three rows of the grid (number, title, names), so the titles line up across a row. */
.type {
  position: relative; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0;
  padding: 22px var(--inset) 28px;
  text-decoration: none; color: var(--ink);
  transition: background-color .25s, color .25s;
}
.type::after { content: "↗"; position: absolute; top: 16px; right: 20px; font-size: 18px; line-height: 1; transition: transform .25s; }
.type-no { font: 500 12px/1 var(--text); letter-spacing: .14em; color: var(--mute); }
.type h3 { align-self: end; padding-top: 64px; font: 500 21px/1.22 var(--text); letter-spacing: -.015em; text-wrap: balance; }
.type p { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--mute); }
.type:hover, .type:focus-visible { background: var(--ink); color: var(--ground); }
.type:hover p, .type:hover .type-no, .type:focus-visible p, .type:focus-visible .type-no { color: inherit; opacity: .72; }
.type:hover::after { transform: translate(2px, -2px); }
.type:focus-visible { outline-offset: -4px; }

/* ---------- Services ----------
   One building section, cut into four bays, one above each service: the building as a drawing
   (Mimari proje), its rooms furnished (İç mimari), its concrete being cast (Uygulama), an opening
   and a new stair in an existing floor (Tadilat). The bays meet edge to edge and read as one
   building; tools/build_bays.mjs draws them. The bay on the end of a row closes with a facade. */
.services { padding: var(--sec) 0; }
.services-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bay { display: block; width: 100%; height: auto; overflow: visible; color: var(--ink); }
.bay path, .bay circle { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bay .d { stroke-width: 1; opacity: .6; }
.bay .h { stroke-width: 1; opacity: .28; }
.bay .x { stroke-dasharray: 4 3; opacity: .75; }
.bay .n { stroke-width: 2.25; }
.bay .p { fill: currentColor; stroke: none; }
.bay .r { fill: var(--ground); stroke: none; }
.bay .end { display: none; }
.services-list li:last-child .end { display: inline; }
.svc-text { padding: 26px 24px 0 var(--inset); }
.services-list h3 { font: 500 21px/1.25 var(--text); letter-spacing: -.015em; }
.services-list p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--mute); max-width: 30ch; }
/* Each bay draws itself from left to right when it comes into view (main.js adds .is-in to its
   item); the delays make a row of bays one sweep. Then each text appears under its bay. */
.services-list li:nth-child(2) { --d: .45s; }
.services-list li:nth-child(3) { --d: .9s; }
.services-list li:nth-child(4) { --d: 1.35s; }
.js .bay { clip-path: inset(-4px 100% -4px -4px); transition: clip-path .45s linear var(--d, 0s), opacity .3s ease; }
.js .services-list .is-in .bay { clip-path: inset(-4px -4px -4px -4px); }
.js .svc-text { opacity: 0; transform: translateY(10px); transition: opacity .7s ease calc(var(--d, 0s) + .25s), transform .7s ease calc(var(--d, 0s) + .25s); }
.js .services-list .is-in .svc-text { opacity: 1; transform: none; }
/* A mouse on a service brings its bay forward. */
@media (hover: hover) and (pointer: fine) {
  .services-list:has(li:hover) li:not(:hover) .bay { opacity: .22; }
}

/* ---------- Office ---------- */
.office { padding: var(--sec) 0; }
.office-grid { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 0 clamp(40px, 7vw, 110px); padding-inline: var(--inset); align-items: start; }
.founder img { width: 100%; height: auto; filter: grayscale(1); }
.founder figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; }
.founder b { font-weight: 500; font-size: 17px; }
.founder span { font-size: 14px; color: var(--mute); }
.statement { font: 400 clamp(20px, 2.05vw, 29px)/1.45 var(--text); letter-spacing: -.01em; text-wrap: pretty; }
.principle { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 24px; padding: 22px 0; border-top: 1px solid var(--rule); }
.statement + .principle { margin-top: clamp(40px, 4vw, 56px); }
.principle h3 { padding-top: 5px; font: 500 12px/1.2 var(--text); letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.principle p { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
/* The architects: three portraits in the founder's look, a little smaller than his. */
.team-list { display: grid; grid-template-columns: repeat(3, minmax(0, 190px)); gap: 28px 24px; }
.team-list img { width: 100%; height: auto; aspect-ratio: 365 / 477; filter: grayscale(1); background: var(--tint); }
.team-list b { display: block; padding-top: 12px; font-weight: 500; font-size: 16px; }
.team-list span { display: block; font-size: 13.5px; color: var(--mute); }

/* ---------- Reference list ---------- */
.refs { padding: var(--sec) 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-inline: var(--inset); }
.filter {
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--rule); border-radius: 999px; background: transparent;
  font: 400 14px/1 var(--text); color: var(--ink); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-on { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.ledger { columns: 4 230px; column-gap: 40px; margin: 44px var(--inset) 0; border-top: 1px solid var(--rule); padding-top: 20px; }
.ledger li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.45; }
.ledger li[hidden], .ledger li.is-cut { display: none; }
.more { margin: 28px var(--inset) 0; }
.more[hidden] { display: none; }

/* ---------- Contact ---------- */
.contact { padding: var(--sec) 0 48px; }
.block-label { margin: 0 0 14px; padding-left: var(--inset); }
.brief + .block-label { margin-top: clamp(48px, 5vw, 72px); }
/* The project brief, drawn as a ruled form. Without a server it opens the visitor's e-mail app. */
.brief { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; min-height: 96px; padding: 18px var(--inset) 16px; margin: 0; }
.field > span { font: 500 11px/1 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--mute-2); }
.field input, .field select, .field textarea {
  width: 100%; margin: 0; padding: 4px 0; border: 0; border-radius: 0; outline: 0; background: transparent;
  font: 400 17px/1.5 var(--text); color: var(--ink);
}
.field textarea { resize: none; overflow: hidden; min-height: 34px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 22px;
  background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 7px center / 6px 6px no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--ink) 50%) right 1px center / 6px 6px no-repeat; }
.field select option { color: #000; background: #fff; }
.field:focus-within { box-shadow: inset 0 -2px 0 var(--ink); }
.field:focus-within > span { color: var(--ink); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); transition: background-color 99999s; caret-color: var(--ink); }
.field-wide { grid-column: span 2; }
.brief-status { grid-column: span 3; justify-content: center; font-size: 14px; line-height: 1.55; color: var(--mute); }
.brief-status.is-error { color: var(--ink); }
.brief-send { justify-content: center; align-items: flex-start; }

/* The title block of the drawing: ruled cells, the signature box on the right. */
.titleblock { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1.15fr) minmax(0, 1.2fr); }
.tb-cell { display: flex; flex-direction: column; min-height: 150px; padding: 20px var(--inset) 24px; }
.tb-cell h4 { margin-bottom: 18px; font: 500 11px/1 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--mute-2); }
.tb-cell p { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.tb-cell a { text-decoration: none; }
.tb-cell a:hover, .tb-cell a:focus-visible { text-decoration: underline; }
.tb-phone p { font-size: 22px; font-weight: 400; letter-spacing: .01em; }
.tb-map { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--mute); }
.tb-sign { grid-column: 4; grid-row: 1 / span 2; }
.tb-cell.is-flash { animation: flash 2.2s ease .45s both; }
@keyframes flash { 0%, 100% { box-shadow: inset 0 0 0 0 transparent; } 18%, 72% { box-shadow: inset 0 0 0 2px var(--ink); } }
.tb-mail p { font-size: clamp(13.5px, 1.18vw, 17px); overflow-wrap: anywhere; }
.sign-end { width: min(100%, 360px); margin: auto; }

.site-footer { padding: 40px 0 96px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding-left: calc(var(--ax) + var(--inset)); padding-right: calc(var(--ax) + var(--inset)); font-size: 13px; color: var(--mute); }

/* ---------- Light reveal when JS runs ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 40px; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }   /* standing logos: no edge fade */
  .tile-img img, .type, .js .reveal, .slides img { transition: none; }
  .slides img { transform: none; }
  .cut-ready:hover .top, .cut-ready:hover .bottom,
  .cut-ready:focus-visible .top, .cut-ready:focus-visible .bottom { transform: none; }
  .axis-v { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .note-arrow path { stroke-dashoffset: 0; transition: none; }
  .js .bay { clip-path: none; transition: none; }
  .js .svc-text { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  :root { --ax: 6%; }
  .nav { gap: 22px; }
  .header-inner { gap: 24px; }
  .intro-sign { --w: min(62vw, 520px); }
  .types-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .services-list li:nth-child(2n) .end { display: inline; }   /* two bays to a row: each row closes */
  .services-list li:nth-child(3) { --d: 0s; }
  .services-list li:nth-child(4) { --d: .45s; }
  .titleblock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tb-sign { grid-column: 1 / -1; grid-row: auto; order: 1; min-height: 260px; }
  .brief { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief-status { grid-column: span 1; }
  .office-grid { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
  .principle { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* Small menu. The header row: logo, "Menü", "İletişim". Below the header: the sections, one row
     each, on rules that run from axis A to axis B with the text one inset inside, then the
     language switch. A tap outside the menu (on the dim layer) closes it. */
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 40px; margin-left: auto; padding: 0 4px;
    border: 0; background: none; cursor: pointer;
    font: 600 12.5px/1 var(--text); letter-spacing: .1em; text-transform: uppercase;
  }
  /* A plus sign that turns into a cross. */
  .menu-btn::after {
    content: ""; width: 10px; height: 10px;
    background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
                linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
    transition: transform .25s var(--ease);
  }
  .menu-btn[aria-expanded="true"]::after { transform: rotate(45deg); }
  .menu {
    display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0;   /* under the header's rule */
    padding: 0 var(--ax) 16px; background: var(--ground); border-bottom: 1px solid var(--rule);
  }
  .menu-open .menu { display: block; }
  .nav { flex-direction: column; gap: 0; margin: 0; }
  .nav a { display: flex; align-items: center; min-height: 52px; padding: 0 var(--inset); border-bottom: 1px solid var(--rule); opacity: 1; }
  .nav a:focus-visible { outline-offset: -2px; }
  .menu .lang { padding: 8px calc(var(--inset) - 6px) 0; }
  .site-header.menu-open { background: var(--ground); border-bottom-color: var(--rule); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.menu-open::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(0, 0, 0, .5); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .fact:nth-child(odd) { border-left: 0; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  :root { --ax: 16px; --inset: 12px; --header-h: 68px; }
  .header-inner { gap: 10px; padding-inline: 16px; }
  .brand img { height: 44px; }
  .lang button { padding: 14px 8px; }   /* 40 px tall touch targets */
  .menu .lang { padding-left: calc(var(--inset) - 8px); }   /* "TR" starts on the line of the sections */
  .pill { min-height: 48px; padding: 0 22px; }
  .pill-sm { min-height: 36px; padding: 0 15px; font-size: 12.5px; }
  main section:not(.hero)::after { display: none; }
  .intro-sign { --w: 84vw; }

  .facts { padding-top: 36px; }
  /* "1.000.000+ m²" must fit half the width of a 320 px phone. */
  .fact dd { min-height: 36px; font-size: clamp(19px, 6vw, 26px); }
  .marquee { margin-top: 36px; }
  .marquee-track { gap: 56px; }
  .marquee-track img { height: 34px; }

  .work-head { height: 150px; }
  /* The note and its arrow scale down together below 390 px. */
  .note { font-size: clamp(30px, 10.8vw, 42px); left: calc(var(--ax) + clamp(80px, 26.7vw, 104px)); }
  .note-arrow { width: clamp(96px, 32.3vw, 126px); left: var(--ax); }
  .work-grid { grid-template-columns: 1fr; gap: 30px; padding: 16px var(--ax) 0; }
  .tile, .tile-lg { grid-column: auto; }
  .tile-img, .tile-lg .tile-img { aspect-ratio: 4 / 3; }
  .tile-cap { padding-inline: var(--inset); }

  .sec-head { grid-template-columns: 1fr; gap: 14px; }
  .sec-lead { justify-self: start; }
  .types-grid { grid-template-columns: 1fr; }
  .type { display: block; padding: 18px var(--inset) 20px; }
  .type h3 { padding-top: 22px; font-size: 20px; }
  .services-list { row-gap: 32px; }
  .svc-text { padding: 16px var(--inset) 0; }
  .services-list h3 { font-size: 17px; }
  .services-list p { margin-top: 6px; font-size: 14px; line-height: 1.55; }

  .office-grid { grid-template-columns: 1fr; gap: 32px; }
  .founder { display: grid; grid-template-columns: 128px 1fr; gap: 18px; align-items: end; }
  .founder figcaption { padding: 0 0 4px; }
  .team-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
  .team-list b { padding-top: 8px; font-size: 14px; }
  .team-list span { font-size: 12.5px; }

  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--ax) * -1); padding: 0 calc(var(--ax) + var(--inset)) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .ledger { margin-top: 32px; }

  .brief { grid-template-columns: 1fr; }
  .field { min-height: 0; padding: 14px var(--inset) 12px; }
  .field-wide, .brief-status { grid-column: auto; }
  .brief-send { padding-block: 16px; }
  .brief-send .pill { width: 100%; }
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-address, .tb-phone, .tb-mail, .tb-since { grid-column: 1 / -1; }
  .tb-cell { min-height: 0; }
  .tb-mail p { font-size: 16px; }
  .tb-sign { min-height: 0; padding-bottom: 28px; }
  .sign-end { width: min(100%, 230px); margin: 4px 0 0; }
  .footer-inner { flex-direction: column; gap: 6px; }
}

/* ---------- Phone on its side (wide and short) ---------- */
@media (min-width: 721px) and (max-height: 500px) {
  :root { --header-h: 64px; }
  .brand img { height: 40px; }
  .nav a { min-height: 44px; }   /* the menu keeps part of the page in view */
}

/* ---------- Print: everything visible, no fixed layers ---------- */
@media print {
  .js .reveal, .js .svc-text { opacity: 1; transform: none; }
  .js .bay { clip-path: none; }
  .sheet-axes, .intro, .dots, .menu-btn { display: none; }
  .site-header { position: absolute; }
}
