/* Fraunces and Instrument Sans (SIL Open Font License 1.1), served from /fonts: no request to Google. */
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 600; font-display: swap; src: url('/fonts/fraunces-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 600; font-display: swap; src: url('/fonts/fraunces-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('/fonts/fraunces-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('/fonts/fraunces-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/instrument-sans-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/instrument-sans-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Petek palette from calkaplabs.com (2026-10-10): cream ground, ink, gold. */
:root {
  color-scheme: light;
  --ground: #EDE6D6;
  --card: #E3DAC6;
  --line: #CFC4AC;
  --ink: #16140F;
  --ink-2: #221F18;
  --muted: #4A443A;
  --gold-text: #7A5A12;
  --gold-em: #8A6414;
  --gold: #D9B05A;
  --gold-hover: #E6C277;
  --night-muted: #CFC6B4;
  --night-line: #4A4336;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-size: 17px; line-height: 1.6; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-text); }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; border-radius: 4px; }
main:focus { outline: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; color: var(--gold-em); }

.wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 10; padding: 12px 18px; background: var(--ink); color: var(--ground); border-radius: 999px; }
.skip-link:focus { top: 16px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; line-height: 1; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.button-ink { background: var(--ink); color: var(--ground); }
.button-ink:hover { background: #2E2A21; color: var(--ground); }
.button-line { border: 1px solid var(--ink); }
.button-line:hover { background: var(--ink); color: var(--ground); }
.button-gold { background: var(--gold); color: var(--ink); }
.button-gold:hover { background: var(--gold-hover); color: var(--ink); }
.button-night { border: 1px solid var(--night-line); color: var(--ground); }
.button-night:hover { border-color: var(--ground); color: var(--ground); }

/* header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; }
.wordmark { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-nav .nav-pill { padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; }
.site-nav .nav-pill:hover { background: var(--ink); color: var(--ground); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.site-nav .nav-lang { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--gold-text); }

/* section scaffolding */
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.section-title { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; }
.section-lead { max-width: 640px; font-size: 19px; color: var(--muted); }

.section-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; }
.rig a, .more a { font-weight: 600; }

/* inner pages */
.page-hero { display: flex; flex-direction: column; gap: 24px; padding-top: 48px; padding-bottom: 88px; }
.page-title { max-width: 1040px; font-size: clamp(48px, 7.4vw, 104px); line-height: .98; letter-spacing: -.035em; }
.page-lead { max-width: 720px; font-size: 20px; color: var(--muted); }
.page-lead a { color: var(--ink); font-weight: 600; }
.approach, .split { display: flex; flex-direction: column; gap: 48px; padding-block: 112px 0; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 56px; }
.facts-list li { display: flex; flex-direction: column; gap: 6px; padding-block: 24px; border-top: 1px solid var(--line); }
.facts-list li:last-child { border-bottom: 1px solid var(--line); }
.facts-list h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.2; letter-spacing: -.015em; }
.facts-list p { color: var(--muted); }
.page-hero + .industrial { margin-top: 0; }

/* work page */
.work-list { display: flex; flex-direction: column; gap: 24px; padding-bottom: 40px; }
.project { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; padding: clamp(28px, 4vw, 48px); background: var(--card); border: 1px solid var(--line); border-radius: 32px; scroll-margin-top: 24px; }
.project-head { display: flex; flex-direction: column; align-items: start; gap: 20px; }
.project-head > div { display: flex; flex-direction: column; gap: 14px; }
.project-icon { width: 120px; height: 120px; border-radius: 26px; }
.project-icon.card-icon-text { font-size: 40px; }
.project-title { font-size: clamp(40px, 4.4vw, 60px); }
.project-body { display: flex; flex-direction: column; gap: 18px; }
.project-lead { font-size: 19px; }
.bullets { display: flex; flex-direction: column; gap: 10px; }
.bullets li { position: relative; padding-left: 22px; color: var(--muted); }
.bullets li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.built-with, .status { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--gold-text); }

/* about page */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); align-items: start; gap: 56px; }
.about-hero-copy { display: flex; flex-direction: column; gap: 24px; }
.about-portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; border: 1px solid var(--line); }
.prose-section { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding-bottom: 112px; }
.prose { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.prose p { font-size: 19px; line-height: 1.7; }
.prose p:first-child { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; letter-spacing: -.01em; }
.prose a { font-weight: 600; }
.about-hero + .prose-section { padding-top: 0; }
.prose-section + .background { margin-bottom: 0; }

/* uses page */
.uses { display: flex; flex-direction: column; gap: 0; }
.uses-group { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; padding-block: 40px; border-top: 1px solid var(--ink); }
.uses-title { font-size: clamp(32px, 3.6vw, 48px); }
.uses-list > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.uses-list > div:first-child { padding-top: 6px; }
.uses-list dt { font-weight: 600; }
.uses-list dd { color: var(--muted); }

/* 1 · hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); align-items: start; gap: clamp(32px, 5vw, 72px); padding-top: 40px; padding-bottom: 104px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-title { font-size: clamp(56px, 8.6vw, 128px); line-height: .94; letter-spacing: -.035em; }
.hero-lead { max-width: 600px; font-size: 20px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--serif); font-size: 26px; letter-spacing: -.02em; line-height: 1.15; }
.facts dd { font-size: 14px; color: var(--muted); }
.portrait { position: relative; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; border: 1px solid var(--line); }
.portrait figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; width: fit-content; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px; background: rgba(22, 20, 15, .82); color: var(--ground); font-size: 14px; font-weight: 500; backdrop-filter: blur(6px); }
.status-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #7BC67E; box-shadow: 0 0 0 4px rgba(123, 198, 126, .22); }

/* 2 · in short */
.in-short { background: var(--card); border-block: 1px solid var(--line); }
.in-short-inner { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding-block: 72px; }
.in-short-text { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -.015em; }
.in-short-text strong { font-weight: 500; }

/* 3 · pillars */
.different { display: flex; flex-direction: column; gap: 56px; padding-block: 120px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.pillars li { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--ink); }
.pillar-no { font-family: var(--serif); font-size: 18px; color: var(--gold-em); }
.pillar-title { font-size: 34px; letter-spacing: -.02em; }
.pillars p { color: var(--muted); }

/* 4 · industrial */
.industrial { background: var(--ink); color: var(--ground); }
.industrial-inner { display: flex; flex-direction: column; align-items: start; gap: 56px; padding-block: 120px; }
.industrial .eyebrow, .industrial em { color: var(--gold); }
.industrial .section-lead { color: var(--night-muted); }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; width: 100%; background: var(--night-line); border: 1px solid var(--night-line); border-radius: 28px; overflow: hidden; }
.services li { display: flex; flex-direction: column; gap: 12px; padding: 36px; background: var(--ink); }
.services h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.15; letter-spacing: -.015em; }
.services p { color: var(--night-muted); }

/* 5 · pipeline */
.pipeline { display: flex; flex-direction: column; gap: 48px; padding-block: 120px; }
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.steps li:not(:last-child)::after { content: '→'; position: absolute; right: -11px; top: 26px; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ground); color: var(--gold-text); font-size: 13px; }
.step-no { font-family: var(--serif); color: var(--gold-em); }
.steps h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -.015em; }
.steps p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.tool { margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--gold-text); }
.rig { font-size: 14px; color: var(--muted); }

/* 6 · work */
.work { display: flex; flex-direction: column; gap: 32px; padding-top: 40px; padding-bottom: 120px; }
.work .section-head { margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.featured { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: clamp(28px, 4vw, 56px); background: var(--ink); color: var(--ground); border-radius: 32px; }
.featured-icon { width: min(100%, 260px); height: auto; aspect-ratio: 1; border-radius: 28px; }
.featured-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.featured .tags span { border-color: var(--night-line); color: var(--night-muted); }
.featured-title { font-size: clamp(44px, 5vw, 68px); }
.featured-copy > p:not(.tags) { max-width: 600px; font-size: 18px; color: var(--night-muted); }
.links { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; align-items: start; gap: 16px; padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; }
.card-icon { width: 88px; height: 88px; border-radius: 20px; }
.card-icon-text { display: grid; place-items: center; background: var(--ink); color: var(--gold); font-family: var(--serif); font-size: 30px; letter-spacing: -.02em; }
.card-title { font-size: 38px; letter-spacing: -.02em; }
.card > p:not(.tags) { color: var(--muted); }
.card-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: auto; font-size: 15px; font-weight: 600; }
.card-link-muted { color: var(--muted); font-weight: 500; }
.more { font-size: 16px; color: var(--muted); }
.more a { color: var(--ink); font-weight: 600; }

/* 7 · background */
.background { background: var(--card); border-block: 1px solid var(--line); }
.background-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; padding-block: 120px; }
.background .section-head { position: sticky; top: 40px; align-self: start; }
.timeline li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.when { font-family: var(--serif); font-size: 20px; color: var(--gold-em); }
.timeline h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.timeline p { color: var(--muted); }

/* 8 · notes */
.notes { display: flex; flex-direction: column; gap: 40px; padding-block: 120px 40px; }
.note-list li { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: baseline; gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); }
.note-list li:last-child { border-bottom: 1px solid var(--line); }
.note-tag { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.note-list h3, .note-list h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.02em; }

/* 9 · contact */
.contact { display: flex; flex-direction: column; align-items: start; gap: 24px; padding-block: 120px; }
.contact-title { max-width: 980px; font-size: clamp(44px, 6.4vw, 92px); line-height: 1; }
.contact-lead { max-width: 560px; font-size: 19px; color: var(--muted); }
.contact-mail { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.6vw, 48px); text-underline-offset: 8px; overflow-wrap: anywhere; }
.contact-alt { font-weight: 600; }

/* footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 24px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.studio img { width: 22px; height: 22px; border-radius: 6px; }

@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .steps li:nth-child(3)::after { display: none; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 80px; }
  .portrait { max-width: 440px; }
  .in-short-inner, .background-inner { grid-template-columns: 1fr; gap: 20px; }
  .background .section-head { position: static; }
  .pillars, .cards, .services { grid-template-columns: 1fr; }
  .split, .project, .about-hero, .prose-section, .uses-group { grid-template-columns: 1fr; gap: 24px; }
  .about-portrait { max-width: 360px; }
  .approach, .split { padding-top: 80px; }
  .different, .industrial-inner, .pipeline, .background-inner, .notes, .contact { padding-block: 88px; }
  .notes { padding-bottom: 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .site-header { padding-block: 20px; }
  .site-nav { gap: 0 18px; font-size: 14px; }
  .hero { padding-top: 16px; }
  .hero-lead, .section-lead, .contact-lead { font-size: 17px; }
  .facts { grid-template-columns: 1fr; gap: 12px; }
  .facts div { display: flex; align-items: baseline; gap: 12px; }
  .facts dt { font-size: 22px; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .services li, .card { padding: 26px; }
  .timeline li, .note-list li, .uses-list > div { grid-template-columns: 1fr; gap: 6px; }
  .site-nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .site-nav a { flex-shrink: 0; }
  .page-hero { padding-top: 16px; padding-bottom: 64px; }
  .page-lead, .prose p, .project-lead { font-size: 17px; }
  .project-icon { width: 88px; height: 88px; border-radius: 20px; }
}
