/* Inna Macháč Guba — design.innaguba.com
   Quiet, editorial and strict: Cormorant Garamond for headings, Jost for text (same as the innaguba.com logo),
   soft grey-green paper, sage as the only accent, thin lines instead of boxes. */


@font-face{font-family:'Jost';font-style:normal;font-weight:300 800;font-display:swap;src:url(../fonts/jost-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:'Jost';font-style:normal;font-weight:300 800;font-display:swap;src:url(../fonts/jost-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}
/* Cormorant Garamond: the light, airy display serif of every headline */
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:300 700;font-display:swap;src:url(../fonts/cormorant-garamond-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:'Cormorant Garamond';font-style:normal;font-weight:300 700;font-display:swap;src:url(../fonts/cormorant-garamond-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:'Cormorant Garamond';font-style:italic;font-weight:300 700;font-display:swap;src:url(../fonts/cormorant-garamond-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:'Cormorant Garamond';font-style:italic;font-weight:300 700;font-display:swap;src:url(../fonts/cormorant-garamond-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}

:root{
  --paper:#F2F3F0;      /* page */
  --sand:#E2E7DF;       /* services band */
  --night:#2C3530;      /* process band, footer */
  --ink:#1B1F1C;        /* headings */
  --body:#3A403B;       /* text */
  --mute:#646B65;       /* labels, captions */
  --line:#D5D9D3;
  --walnut:#3D6442;     /* the one accent (name kept from the first palette) */
  --logo-accent:#3F6A44; /* a touch deeper, for "Design" in the wordmark */
  --cream:#EDF1EB;      /* text on dark */
  --gold:#B5C3AE;       /* accent on dark */
  --frame:#E4E8E1;      /* project card frame */
  --frame-line:#D3D9D0;
  --sand-line:#C9D1C5;
  --night-line:#414C45;
  --night-mute:#A3AEA4;
  --night-text:#C2CCC0;
  --head-bg:rgba(242,243,240,.92);
  --shadow:30,38,33;
  --serif:'Cormorant Garamond',Georgia,'Times New Roman',serif;
  --sans:'Jost',system-ui,-apple-system,'Segoe UI',sans-serif;
  --gutter:clamp(20px,6vw,80px);
  --max:1280px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:var(--head-h,66px)}
body{margin:0;background:var(--paper);color:var(--body);font-family:var(--sans);font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
a:hover{color:var(--walnut)}
h1,h2,h3,p{margin:0}
:focus-visible{outline:2px solid var(--walnut);outline-offset:3px}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:#fff;padding:8px 14px;z-index:20}
.skip:focus{left:8px}

.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}
.serif{font-family:var(--serif);font-weight:300;color:var(--ink)}
.accent{color:var(--walnut);font-style:italic}
.label{font-size:14px;color:var(--mute)}
.line-link{display:inline-block;padding-bottom:5px;border-bottom:1px solid currentColor;text-decoration:none;color:var(--ink)}

/* Previous warm palette (walnut and sand), preview with ?theme=warm */
[data-theme="warm"]{
  --logo-accent:#59462D; --paper:#F4F3F0; --sand:#EBE4D9; --night:#2E241B; --ink:#1A1714; --body:#3F3934; --mute:#6B645C; --line:#D9D5CF; --walnut:#59462D; --cream:#F1EADF; --gold:#CDB89C; --frame:#E9E4DC; --frame-line:#DDD6CB; --sand-line:#D3C8B8; --night-line:#4A3D30; --night-mute:#B8AA97; --night-text:#CBBFAE; --head-bg:rgba(244,243,240,.92); --shadow:46,36,27;
}

/* Header */
.site-head{position:sticky;top:0;z-index:10;border-bottom:1px solid var(--ink);background:var(--head-bg);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px)}
.site-head .wrap{display:flex;justify-content:space-between;align-items:baseline;gap:24px;padding-top:24px;padding-bottom:20px;font-size:16px}
/* Wordmark matches the innaguba.com header logo exactly (Jost 400, 18px, 0.1em caps); "Design" carries the accent */
.site-head .name{font-family:var(--sans);font-weight:300;font-size:18px;line-height:1;letter-spacing:.1em;text-transform:uppercase;text-decoration:none;color:#111}
.site-head .name span{color:var(--logo-accent);font-weight:500}
.site-head nav{display:flex;gap:clamp(18px,3vw,36px)}
.site-head nav a{text-decoration:none}

/* Language switch: one quiet link after the menu */
.site-head nav .lang-switch{display:flex;gap:14px;padding-left:clamp(18px,3vw,36px);border-left:1px solid var(--line);font-size:14px;letter-spacing:.08em}
.site-head nav .lang-switch .is-current{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.site-head nav .lang{color:var(--ink);opacity:.55;transition:opacity .2s ease}
.site-head nav .lang:hover{opacity:1}

/* Mobile menu button (hidden on larger screens) */
.menu-btn{display:none;width:44px;height:44px;margin:0;padding:0;border:0;background:none;cursor:pointer;position:relative;color:var(--ink)}
.menu-btn span{position:absolute;left:11px;right:11px;height:1.5px;background:currentColor;transition:transform .3s ease,top .3s ease}
.menu-btn span:nth-child(1){top:17px}
.menu-btn span:nth-child(2){top:25px}
.menu-open .menu-btn span:nth-child(1){top:21px;transform:rotate(45deg)}
.menu-open .menu-btn span:nth-child(2){top:21px;transform:rotate(-45deg)}

/* Sections */
.section{padding:clamp(64px,9vw,96px) 0;border-bottom:1px solid var(--line)}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,3fr);gap:40px}
.cols-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}
.cols-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 40px}
.h2{font-family:var(--serif);font-weight:300;font-size:clamp(38px,4vw,49px);line-height:1.1;color:var(--ink)}
.item-title{font-weight:500;color:var(--ink);margin-bottom:10px}

/* Hero */
.hero{padding:clamp(80px,12vw,140px) 0 clamp(72px,10vw,120px);border-bottom:1px solid var(--line)}
.hero h1{margin-top:28px;max-width:1000px;font-family:var(--serif);font-weight:300;font-size:clamp(54px,9.4vw,116px);line-height:.98;letter-spacing:-.01em;color:var(--ink)}
.hero-foot{display:flex;justify-content:space-between;align-items:last baseline;gap:32px;margin-top:56px}
.hero-foot p{max-width:600px}
/* hero button: light with a fine dark frame, square and flat like every other edge on the site */
.hero-foot{align-items:flex-end}
.btn{display:inline-block;padding:16px 26px;font-size:14px;font-weight:400;letter-spacing:.1em;text-transform:uppercase;text-decoration:none;white-space:nowrap;color:var(--ink);background:var(--paper);border:1px solid var(--ink);transition:background .25s ease,color .25s ease}
.btn:hover{background:var(--ink);color:var(--paper)}

.hero-foot .hero-cta{width:var(--hero-side,290px);padding-left:12px;padding-right:12px;text-align:center}

/* Work */
.work-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:40px}
.project{display:flex;flex-direction:column;gap:16px;text-decoration:none;color:inherit}
.project:hover{color:inherit}
.project-img{display:block;padding:clamp(16px,2.6vw,32px);border-radius:16px;overflow:hidden;background:var(--frame);border:1px solid var(--frame-line)}
.project-img img{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top;border-radius:6px;box-shadow:0 1px 2px rgba(var(--shadow),.08),0 12px 32px -18px rgba(var(--shadow),.35);transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.project:hover .project-img img{transform:scale(1.03)}
.project-meta{display:flex;justify-content:space-between;gap:16px;font-size:15px}
.project-meta strong{font-weight:500;color:var(--ink)}
.project-meta .live{display:inline-flex;align-items:center;gap:8px;font-weight:500;color:var(--ink);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px}
.project-meta .live:hover{text-decoration-color:currentColor}
.project-meta span{color:var(--mute);text-align:right}
.project-story{font-size:15px;line-height:1.6}
.project-story em{font-style:normal;color:var(--mute)}
.project-link{font-size:15px;color:var(--ink);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}

/* Tablet mockups (her own mockup with the live sites on screen) */
.project-img.tablet,.project-img.photo{padding:0;border:0;background:none;border-radius:16px}
.project-img.tablet img,.project-img.photo img{aspect-ratio:4/3;object-fit:cover;border-radius:16px;box-shadow:none}

.project-img.photo img{object-position:center}

/* A full-width project card (the brand shoot) under the two website cards */
.project-wide{grid-column:1/-1}
.project-wide .project-img{padding:0;border:0;background:none}
.project-wide .project-img img{aspect-ratio:21/9;object-fit:cover;object-position:center 40%;border-radius:16px;box-shadow:none}
.project-wide .project-story{max-width:760px}

/* Photography strip */
.photo-strip{padding:clamp(64px,9vw,104px) 0;border-bottom:1px solid var(--line)}
.strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:center}
.strip img{width:100%;height:auto;border-radius:12px;object-fit:cover}
.strip img:nth-child(1){aspect-ratio:2/3}
.strip img:nth-child(2){aspect-ratio:2/3;margin-top:64px}
.strip img:nth-child(3){aspect-ratio:2/3}
.strip-note{max-width:760px;margin:40px auto 0;text-align:center;font-family:var(--serif);font-weight:400;font-size:clamp(27px,3vw,38px);line-height:1.3;color:var(--ink)}

/* About */
.about-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;align-items:start}
.about-photo{width:240px;height:240px;border-radius:50%;object-fit:cover}
.about-text{grid-column:span 2;display:flex;flex-direction:column;gap:18px}
/* link in running text: same colour as the text, only a faint underline that darkens on hover */
.about-text a:not(.line-link){color:var(--ink);text-decoration:underline;text-decoration-color:var(--line);text-decoration-thickness:1px;text-underline-offset:4px;transition:text-decoration-color .2s ease}
.about-text a:not(.line-link):hover{text-decoration-color:currentColor}
.about-lead{font-family:var(--serif);font-weight:400;font-size:34px;line-height:1.3;color:var(--ink)}
.facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:10px 32px;margin:12px 0 0;padding-top:20px;border-top:1px solid var(--line);font-size:14px}
.facts dt{color:var(--mute)}
.facts dd{margin:0}
.facts a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px}
.facts a:hover{text-decoration-color:currentColor}

/* Services */
.band-sand{background:var(--sand);border-bottom:0}
/* services: the lavender of the first project card instead of the grey-green, prices in forest green */
/* prices sit on one line across the three columns, whatever the text length */
#services .cols-3>div:not(.price-note){display:flex;flex-direction:column}
#services .price{margin-top:auto;padding-top:14px}
.price{font-family:var(--serif);font-size:25px;color:var(--walnut)}
.price-note{grid-column:1/-1;display:flex;justify-content:space-between;align-items:baseline;gap:24px;margin-top:8px;padding-top:24px;border-top:1px solid var(--sand-line);font-size:15px}
.price-note .serif{font-style:italic;font-size:24px;color:var(--night)}

/* Process */
.band-night{background:var(--night);color:var(--cream);text-align:center;padding:clamp(88px,11vw,120px) 0 clamp(96px,12vw,130px)}
.band-night .kicker{font-size:13px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--night-mute)}
.band-night .lead{margin-top:20px;font-family:var(--serif);font-style:italic;font-weight:300;font-size:clamp(38px,5vw,63px);line-height:1.15}
.band-night .lead span{color:var(--gold)}
/* Process: four short steps, side by side on wide screens; lining numerals so "1." doesn't read as "I." */
.step-title{font-family:var(--serif);font-variant-numeric:lining-nums}
#process .lead{font-size:clamp(34px,5vw,56px)}
.steps{list-style:none;margin:56px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:40px}
.step{display:flex;flex-direction:column;align-items:center;gap:10px;padding-top:24px;border-top:1px solid var(--night-line)}
.step-title{font-weight:300;font-size:clamp(30px,2.6vw,38px);line-height:1.1;color:var(--cream)}
/* titles that wrap to two lines keep the texts under them on one line across the row */
@supports (grid-template-rows:subgrid){.step{display:grid;grid-row:span 3;grid-template-rows:subgrid;justify-items:center;align-items:start}.step-title{align-self:end}}
@media (max-width:900px){.steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:48px 32px}}
@media (max-width:640px){.steps{grid-template-columns:1fr;gap:36px}}
.step-text{max-width:540px;font-size:15px;line-height:1.6;color:var(--night-text)}
/* what the client gets: same text style as the step, just brighter */
.step-get{margin-top:-6px;max-width:540px;font-size:15px;line-height:1.6;color:var(--cream)}
@media (max-width:640px){.step-title{font-size:32px;font-weight:400}#process .lead{font-weight:400}}

/* Reviews */
.quote{font-family:var(--serif);font-weight:400;font-size:25px;line-height:1.45;color:var(--ink)}
.quote-by{margin-top:14px;font-size:14px;color:var(--mute)}
.reviews-foot{margin-top:32px;padding-top:20px;border-top:1px solid var(--line);font-size:14px}
.reviews-foot a{color:var(--walnut)}

/* same small spaced capitals as the PROCESS label */
.reviews-label{text-align:center;font-size:13px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}
.quote-big{max-width:980px;margin:28px auto 0;text-align:center}
.quote-big blockquote{margin:0;font-family:var(--serif);font-weight:300;font-size:clamp(36px,4.4vw,60px);line-height:1.18;color:var(--ink)}
.quote-big .quote-by{margin-top:22px}
.quotes-small{margin-top:clamp(56px,7vw,80px);padding-top:32px;border-top:1px solid var(--line)}
.quotes-small figure{margin:0}
.quotes-small blockquote{margin:0}
#reviews .reviews-foot{text-align:center;margin-top:clamp(40px,5vw,56px);padding-top:0;border-top:0}

/* Contact */
.contact{padding:clamp(88px,11vw,120px) 0 clamp(96px,12vw,140px)}
.contact-mail{display:inline-block;margin-top:24px;font-family:var(--serif);font-weight:300;font-size:clamp(34px,4.5vw,54px);line-height:1.1;letter-spacing:-.01em;color:var(--ink);text-decoration:none;word-break:break-word}
.contact-lines{margin-top:20px}
.contact-lines a{text-decoration:none}
.contact-note{margin-top:10px;color:var(--mute)}

/* Footer */
.site-foot{background:var(--night);color:var(--cream)}
.site-foot .slogan{padding:80px 0;text-align:center;font-family:var(--serif);font-weight:300;font-size:clamp(34px,4.5vw,54px);line-height:1.15}
.site-foot .slogan em{color:var(--gold)}
.foot-bar{display:flex;justify-content:space-between;gap:16px;padding:24px 0 40px;border-top:1px solid var(--night-line);font-size:13px;color:var(--night-mute)}
.foot-bar a{color:var(--night-mute)}
.foot-bar a:hover{color:var(--cream)}

/* Legal pages */
.legal{max-width:760px;padding:clamp(64px,9vw,96px) 0}
.legal h1{font-family:var(--serif);font-weight:300;font-size:clamp(45px,6vw,72px);line-height:1.05;color:var(--ink)}
.legal h2{margin:40px 0 10px;font-size:17px;font-weight:500;color:var(--ink)}
.legal p,.legal li{line-height:1.7}
.legal ul{padding-left:20px;margin:0}
.legal .label{margin-top:16px}

/* Scroll reveal (only when JS runs) */
.js [data-reveal]{opacity:0;transform:translateY(24px);transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
.js [data-reveal].is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js [data-reveal]{opacity:1;transform:none;transition:none}
  .project-img img{transition:none}
}

/* Tablet and phone */
@media (max-width:900px){
  .split{grid-template-columns:1fr;gap:28px}
  .cols-3{grid-template-columns:1fr;gap:32px}
  .cols-2{grid-template-columns:1fr}
  .about-grid{grid-template-columns:1fr}
  .about-text{grid-column:auto}
  .about-photo{width:180px;height:180px}
  .strip{grid-template-columns:1fr 1fr}
  .strip img:nth-child(2){margin-top:0}
  .strip img:nth-child(3){display:none}
  .price-note{flex-direction:column;gap:8px}
}
@media (max-width:640px){
  .work-head{flex-direction:column;align-items:flex-start;gap:10px}
  .project-wide .project-img img{aspect-ratio:4/3}
  .about-photo{justify-self:center;margin:0 auto}
  .contact-lines{display:flex;flex-direction:column;gap:6px}
  .contact-lines .sep{display:none}
  .hero{padding-top:44px}
  .hero p.label{font-size:15px}
  /* phone header: logo centred, menu button on the right, links open as a full-screen panel */
  /* no backdrop blur here: it would make the fixed menu panel position itself inside the header */
  .site-head{background:var(--paper);backdrop-filter:none;-webkit-backdrop-filter:none}
  .site-head .wrap{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;padding-top:12px;padding-bottom:12px}
  .site-head .name{grid-column:2;justify-self:center;font-size:16px}
  .menu-btn{display:block;grid-column:3;grid-row:1}
  .site-head nav{position:fixed;inset:var(--head-h,69px) 0 0 0;z-index:9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;background:var(--paper);opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s}
  .site-head nav a{font-family:var(--serif);font-weight:400;font-size:40px;color:var(--ink)}
  .menu-open .site-head nav{opacity:1;visibility:visible}
  .menu-open{overflow:hidden}
  .site-head nav .lang-switch{margin-top:20px;padding:22px 0 0;border-left:0;border-top:1px solid var(--line);gap:28px;font-size:18px;letter-spacing:.14em}
  .site-head nav .lang{font-family:var(--sans);font-size:18px;letter-spacing:.14em}
  .hero-foot{flex-direction:column;align-items:flex-start}
  .hero-cta{align-self:center;max-width:100%;white-space:normal;text-align:center}
  .project-meta{flex-direction:column;gap:2px}
  .project-meta span{text-align:left}
  .foot-bar{flex-direction:column}
  .facts{grid-template-columns:1fr 2fr}
}
@media (max-width:640px){.br-desk{display:none}}
/* Cormorant at 300 gets too thin below ~40px: on phones the serif headings drop under that, so they go to 400 */
@media (max-width:640px){.h2,.stack-title,.quote-big blockquote,.contact-mail,.site-foot .slogan{font-weight:400}}

/* project cards: link names never break, "Read the case study" lines up at the bottom of each row */
.project-meta .live{white-space:nowrap}
.project-link{margin-top:auto;align-self:flex-start}

/* Projects: large cards that stick under the header and slide over each other while scrolling */
.stack{display:flex;flex-direction:column;gap:clamp(24px,4vw,40px);margin-top:clamp(8px,2vw,16px)}
/* empty space after the last card: the stack holds still here while the last card settles to the same size,
   and it doubles as the gap before the photo strip */
.stack::after{content:"";height:18vh}
#work{padding-bottom:0;border-bottom:0}
.stack-card{--bg:var(--sand);--fg:var(--ink);--txt:var(--body);--sub:var(--mute);
  position:sticky;top:calc(var(--head-h,66px) + 20px + var(--i) * 14px);
  display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(24px,4vw,56px);
  height:clamp(460px,calc(100vh - var(--head-h,66px) - 120px),600px);padding:clamp(20px,2.6vw,32px);
  border-radius:24px;background:var(--bg);color:var(--txt);
  box-shadow:0 -1px 0 rgba(255,255,255,.4) inset,0 -18px 40px -28px rgba(var(--shadow),.35);
  transform-origin:50% 0;will-change:transform}
.stack-card{--acc:var(--walnut)}
/* each card wears its client's own colours; the site itself stays green */
.stack-card.tone-walnut{--bg:#6B5539;--fg:#F4EEE4;--txt:#E6DCCD;--sub:#CDBFA9;--acc:#E8C9A0} /* innaguba.com walnut, the strongest card goes first */
.stack-card.tone-sage{--bg:#C0CEBB;--acc:#9A4706} /* kvetinovafarma.com orange, deepened to read on sage */
.stack-card.tone-ivory{--bg:#E9DFD6;--acc:#4A0E1C}
.stack-card.tone-clinic{--bg:#E2E6E8;--acc:#930637} /* Supreme Dental: cool surgery white-grey, their raspberry logo colour */
.stack-card.tone-teal{--bg:#11373E;--fg:#F0EFEC;--txt:#D3DEDC;--sub:#A6BDBB;--acc:#A9BFAB} /* Loukal logo teal, their sage */
.stack-card.tone-concrete{--bg:#DAD6D0;--acc:#A34B12} /* topenivcajku.com orange on warm grey, so their dark site stands out */
.stack-card{--sub:rgba(27,31,28,.74)} /* labels on the light cards, 5:1 at 14px */
.stack-card.tone-ink{--bg:#111111;--fg:#F4F3EF;--txt:#DEDED9;--sub:#A8A8A3;--acc:#D3E34C} /* Není úklid concept: black and acid lime */
.stack-card.tone-paper{--bg:#E7E6E2;--acc:#B83A0E} /* Usťa: their paper ground, signal orange deepened to read on it */
.stack-text{display:flex;flex-direction:column;gap:18px;padding:clamp(4px,1.4vw,16px) 0 clamp(4px,1.4vw,16px) clamp(4px,1.4vw,16px);min-height:0}
.stack-kind{margin:0;font-size:14px;color:var(--sub)}
.stack-title{margin:0;font-family:var(--serif);font-weight:300;font-size:clamp(34px,3.4vw,54px);line-height:1.08;letter-spacing:-.01em;color:var(--fg)}
.stack-title em{font-style:italic;color:var(--acc)}
.stack-card .project-story{margin:0;color:var(--txt)}
.stack-card .project-story em{color:var(--sub)}
.stack-links{display:flex;flex-wrap:wrap;gap:12px 28px;align-items:baseline;margin-top:auto}
.stack-card .project-link,.stack-card .live{color:var(--fg);text-decoration-color:currentColor}
.stack-card .live{font-size:15px;text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-underline-offset:4px;white-space:nowrap}
.stack-img{display:block;min-height:0;border-radius:16px;overflow:hidden}
.stack-img img{width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.stack-card:hover .stack-img img{transform:scale(1.03)}
@media (max-width:900px){
  .stack-card{grid-template-columns:1fr;grid-template-rows:auto auto;height:auto;top:calc(var(--head-h,60px) + 12px + var(--i) * 10px);gap:20px;border-radius:20px}
  .stack-text{padding:4px 4px 0;gap:14px}
  .stack-img{order:-1;aspect-ratio:4/3}
  .stack-card .project-story{font-size:15px}
}
/* short screens or reduced motion: cards simply follow each other */
@media (max-height:620px),(prefers-reduced-motion:reduce){.stack-card{position:relative;top:auto}.stack::after{height:clamp(64px,9vw,96px)}}
@media (prefers-reduced-motion:reduce){.stack-img img{transition:none}}
/* tablet mockups sit straight on the card colour, no frame */
.stack-img.device{border-radius:0;overflow:visible;display:flex;align-items:center;justify-content:center}
.stack-img.device img{object-fit:contain;max-height:100%}
.stack-card:hover .stack-img.device img{transform:scale(1.02)}
@media (max-width:900px){.stack-img.device{aspect-ratio:auto}.stack-img.device img{height:auto}}


/* the services line above the hero headline: readable, not a footnote */
.hero .label{font-size:clamp(16px,1.5vw,19px);color:var(--ink)}

/* Hand-drawn marks: a loose pen circle or a double underline that draws itself when it comes into view */
.mark{position:relative;display:inline-block;white-space:nowrap;--mark:var(--ink)}
.mark-svg{position:absolute;pointer-events:none;overflow:visible;fill:none;stroke:var(--mark);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.mark-svg path{vector-effect:non-scaling-stroke;stroke-dasharray:1;stroke-dashoffset:0}
.mark-circle{margin-right:.25em}
.mark-circle.is-mid{margin-left:.4em}
.mark-circle .mark-svg{left:-.45em;top:-.3em;width:calc(100% + .9em);height:calc(100% + .6em)}
.mark-under .mark-svg{left:-.1em;right:-.1em;bottom:-.42em;width:calc(100% + .2em);height:.55em}
.site-foot .mark,.band-night .mark{--mark:var(--gold)}
.js .mark .mark-svg path{stroke-dashoffset:1}
.js .mark.is-drawn .mark-svg path{stroke-dashoffset:0;transition:stroke-dashoffset 1.1s cubic-bezier(.6,.1,.2,1) .25s}
@media (prefers-reduced-motion:reduce){.js .mark .mark-svg path{stroke-dashoffset:0;transition:none}}

/* studio photo in the Process band: where the first conversation happens */
.process-photo{max-width:380px;margin:clamp(32px,4vw,44px) auto 0}
.process-photo img{width:100%;border-radius:16px}
.process-photo figcaption{margin-top:14px;font-size:14px;color:var(--night-mute);text-wrap:balance}
/* photo cards take exactly the footprint of the tablet body in the mockups (1188 x 906 of the 1260 x 984 image,
   sitting a little above its centre), rounded, with a soft shadow */
.stack-img.device.photo img{width:94.3%;height:auto;max-height:none;aspect-ratio:1188/906;object-fit:cover;border-radius:22px;margin-bottom:3.8%;box-shadow:0 26px 40px -26px rgba(0,0,0,.5)}
@media (max-width:900px){.stack-img.device.photo img{width:100%}}


/* Questions: one column of questions that open on click */
.faq{border-top:1px solid var(--line)}
.faq-item{border-bottom:1px solid var(--line)}
.faq-item summary{position:relative;display:block;padding:22px 48px 22px 0;cursor:pointer;list-style:none;font-family:var(--serif);font-weight:400;font-size:clamp(24px,2.2vw,29px);line-height:1.25;color:var(--ink);transition:color .2s ease}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:hover{color:var(--walnut)}
.faq-item summary:focus-visible{outline:2px solid var(--walnut);outline-offset:4px}
.faq-item summary::before,.faq-item summary::after{content:"";position:absolute;right:8px;top:50%;width:16px;height:1px;background:currentColor;transition:transform .3s ease}
.faq-item summary::after{transform:rotate(90deg)}
.faq-item[open] summary::before{transform:rotate(45deg)}
.faq-item[open] summary::after{transform:rotate(135deg)}
.faq-item p{margin:0;max-width:620px;padding:0 48px 26px 0}
/* smooth opening where the browser supports it; elsewhere it simply opens */
@supports (interpolate-size:allow-keywords){
  .faq{interpolate-size:allow-keywords}
  .faq-item::details-content{height:0;overflow:hidden;transition:height .35s ease,content-visibility .35s allow-discrete}
  .faq-item[open]::details-content{height:auto}
}
