/* Layout draft modelled on therow.com — values from THE-ROW-SPEC.md */
:root{
  --bg:#fff; --text:#1c1b1b; --light:#6a6a6a; --border:#ddd; --tile:#f8f6f5;
  --gutter:20px; --header-h:60px;
  --font:"Basic Commercial","Helvetica Neue",Helvetica,Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:400 13px/1.65 var(--font);-webkit-font-smoothing:antialiased;letter-spacing:normal}
body.no-scroll{overflow:hidden}
a{color:inherit;text-decoration:none;transition:color .2s ease-in-out}
ul{list-style:none;margin:0;padding:0}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
p{margin:0}
.muted{color:var(--light)}

/* Header */
.header{position:sticky;top:0;z-index:20;height:var(--header-h);background:var(--bg)}
.is-home .header{background:transparent}
.header__wrap{display:flex;justify-content:space-between;align-items:center;height:100%;padding:15px var(--gutter)}
.header__item--fill{flex:1 0 0;display:flex;align-items:center}
.header__item--right{justify-content:flex-end}
.header__item--logo{flex:0 0 110px;display:flex;justify-content:center}
.logo{display:block;width:110px;height:14px;text-align:center;white-space:nowrap;font-size:11.2px;line-height:14px;font-weight:300;letter-spacing:.34em;padding-left:.34em;color:var(--text)}
.nav{display:flex;margin:-6px 0}
.nav li{margin:6px 30px 6px 0}
.nav a{display:block;padding-bottom:2px;color:#000;text-decoration:underline transparent 1px;text-underline-offset:2px;transition:text-decoration-color .2s ease-in-out,color .2s ease-in-out}
.nav a:hover,.nav a[aria-current]{text-decoration-color:currentColor}
.header__burger{display:none;width:20px;height:15px}

/* Drawer (mobile menu) */
.drawer{position:fixed;inset:0;z-index:100;background:#fff;overflow:auto}
.drawer[hidden]{display:none}
.drawer__top{display:flex;justify-content:space-between;align-items:flex-start;height:68px;padding:15px 20px}
.drawer__close{margin-top:5px}
.drawer__list a{display:block;padding:10px 20px;color:#000}
.drawer__list--secondary{margin-top:40px}
.drawer__info{margin:60px 0 0;padding:0 20px}
.drawer__info div+div{margin-top:20px}
.drawer__info dt{color:var(--light)}
.drawer__info dd{margin:0}
.drawer__info a{color:inherit}

/* Home hero */
.hero{margin-top:calc(var(--header-h) * -1);height:calc(100vh - 90px);min-height:480px;position:relative;overflow:hidden;background:var(--tile);cursor:pointer;outline:none;touch-action:pan-y;-webkit-tap-highlight-color:transparent;user-select:none}
.hero__slide{position:absolute;inset:0;visibility:hidden;will-change:transform}
.hero__slide.is-active,.hero__slide.is-moving{visibility:visible}
.hero__img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--pd);pointer-events:none}
@media (max-width:1007px){.hero__img{object-position:var(--pm)}}
/* header recolours over dark photos */
.header,.header a,.header .logo,.header__burger{transition:color .3s ease-in-out}
.is-home.hero-dark .header,.is-home.hero-dark .header a,.is-home.hero-dark .logo{color:#fff}

/* Inner pages */
.page{min-height:calc(100vh - var(--header-h) - 250px)}
.toolbar{display:flex;justify-content:space-between;align-items:flex-start;padding:35px var(--gutter) 15px}
.breadcrumbs{display:flex;align-items:center}
.breadcrumbs .dot{margin:0 8px;font-size:10px}
.page__body{padding:0 var(--gutter) 50px}

/* Footer */
.footer{margin:0 10px;border-top:1px solid var(--border);padding:50px 0;color:var(--light)}
.footer__inner{display:flex;padding:0 56.8px;min-height:115px}
.footer__col{flex:0 0 266px}
.footer__col--lead{flex:0 0 242.5px;color:var(--text)}
.footer__col--last{flex:0 0 256px}
.footer__col li{margin-bottom:8.55px}
.footer__col a{color:#212121}
.footer__col a:hover{color:var(--light)}
.footer__col--last a{text-decoration:underline!important;text-underline-offset:3px}
.footer__copy{text-align:center;padding-top:12.55px;color:var(--light)}

/* Below 1008: mobile header + drawer */
@media (max-width:1007px){
  :root{--header-h:50px}
  .header{position:relative}
  .header__burger{display:block}
  .nav{display:none}
  .header__item--fill:first-child{justify-content:flex-start}
  .toolbar{padding:16.5px 15px}
  .page__body{padding:0 15px 50px}
  .page{min-height:calc(100vh - 50px - 250px)}
  .footer__inner{flex-direction:column;gap:30px;padding:0 20px}
  .footer__col,.footer__col--lead,.footer__col--last{flex:none}
  .footer{padding:40px 0}
}
@media (max-width:1007px){.header__wrap{padding:15px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* soft scrim behind the header on dark photos (deviation: The Row has none; legibility on busy photos) */
.is-home .header::before{content:"";position:absolute;left:0;right:0;top:0;height:110px;z-index:-1;pointer-events:none;background:linear-gradient(rgba(0,0,0,.32),rgba(0,0,0,0));opacity:0;transition:opacity .3s ease-in-out}
.is-home.hero-dark .header::before{opacity:1}

/* hero captions: city, country — bottom right */
.hero__caption{position:absolute;right:var(--gutter);bottom:var(--gutter);color:#fff;font-size:13px;line-height:21.45px;text-shadow:0 0 14px rgba(0,0,0,.35);pointer-events:none}
@media (max-width:1007px){.hero__caption{right:15px;bottom:15px}}

/* ===== Inner pages (measured from The Row interior templates; see Figma) ===== */
.is-inner .page{min-height:calc(100vh - var(--header-h) - 250px)}
.dot{margin:0 8px;font-size:10px}
.muted{color:var(--light)}
.btn{display:flex;align-items:center;justify-content:center;width:100%;height:30px;border:1px solid var(--text);background:#fff;color:var(--text);text-align:center;transition:background .2s,color .2s}
.btn:hover{background:var(--text);color:#fff}
.btn--dark{background:#212121;color:#fff;width:390px;cursor:pointer}
.btn--dark:hover{background:#000}

/* About — editorial (William Eggleston template) */
.editorial{max-width:680px;margin:0 auto;padding:124px 0 120px}
.editorial__text{text-align:center}
.editorial__text p+p{margin-top:21.45px}
.editorial__figure{margin:46px 0 0}
.editorial__figure img{display:block;width:100%;height:552px;object-fit:cover;object-position:50% 38%;background:var(--tile)}
.editorial__figure figcaption{margin-top:40px}

/* Work — collection grid (2-up, rounded thumbnails) */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;width:calc(100% - 40px);max-width:1130px;margin:0 auto;padding:20px 0 100px}
.card a{display:block}
.card__img{aspect-ratio:553/386;background:var(--tile);border-radius:20px;overflow:hidden}
.card__img img{display:block;width:100%;height:100%;object-fit:cover}
.card__meta{display:flex;justify-content:space-between;gap:12px;margin-top:7px}

/* Case study — product page template */
.pdp{display:flex;align-items:flex-start;padding:20px 0 100px 90px}
.pdp__gallery{flex:0 0 617px}
.pdp__gallery img{display:block;width:100%;height:auto;background:var(--tile)}
.pdp__info{flex:0 0 598px;padding:108px 100px 0;max-width:598px}
.pdp__crumbs{display:flex;align-items:center;font-size:12px;margin-bottom:14px}
.pdp__title{font:inherit;font-weight:500;font-size:15px;margin:0 0 6px}
.pdp__no{margin-bottom:14px}
.pdp__lede{margin-bottom:24px}
.pdp__meta{margin:0 0 30px}
.pdp__meta div{display:flex;gap:14px}
.pdp__meta dt{flex:0 0 72px;color:var(--light)}
.pdp__meta dd{margin:0}
.accs{margin-bottom:30px;border-bottom:1px solid var(--border)}
.acc{border-top:1px solid var(--border)}
.acc summary{display:flex;justify-content:space-between;align-items:center;padding:12px 0;cursor:pointer;list-style:none}
.acc summary::-webkit-details-marker{display:none}
.acc__i::before{content:"+"}
.acc[open] .acc__i::before{content:"−"}
.acc>p,.acc>ol,.acc>ul{padding:0 0 18px}
.steps li{margin-bottom:10px}
.steps .acc__h{display:block}
.steps .acc__b{display:block;color:var(--light)}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}
.stat__n{display:block;font-size:20px;line-height:1.2}
.stat__l{display:block;color:var(--light)}

/* Experience + Connect — Customer Care template */
.care{display:flex;max-width:1040px;margin:0 auto;padding:80px 0 100px 30px;gap:80px}
.care__side{flex:0 0 250px}
.care__side h1{font:inherit;font-weight:500;margin:0 0 21.45px}
.care__side li{margin-bottom:5px}
.care__side a{color:#6a6a6a}
.care__side a:hover{color:#212121}
.care__main{flex:0 1 650px;min-width:0}
.care__main>p:first-child{margin-bottom:30px}
.tbl{width:100%;border-collapse:collapse;margin-bottom:0}
.care__rule{border:0;border-top:1px solid #d6d6d6;margin:30px 0}
.tbl th{font-style:italic;font-weight:400;text-align:left;padding:0 0 6px}
.tbl td{padding:6px 16px 6px 0;vertical-align:top}
.tbl__group td{font-style:italic;padding-top:18px;opacity:.6}
.tbl td:last-child,.tbl th:last-child{width:34%}
.u{text-decoration:underline;text-underline-offset:2px}
.exp{margin-bottom:28px;scroll-margin-top:80px}
.exp h2{font:inherit;font-weight:500;margin:0}

/* Beyond — gallery template */
.gal{display:grid;grid-template-columns:repeat(2,452px);gap:130px 14px;justify-content:center;padding:50px 0 100px}
.gal__item img{display:block;width:452px;height:677px;object-fit:cover;background:var(--tile)}
.gal__text{margin:75px 0 0 50px;width:352px}

/* Recommendation — centred text template */
.centered{max-width:640px;margin:0 auto;padding:200px 0 320px;text-align:center}
.centered--first{padding-bottom:0}
.centered--last{padding-top:100px}
.centered__quote{margin:0 0 21.45px}
.centered__by{margin-bottom:21.45px}
.linkbtn{text-decoration:underline;text-underline-offset:2px}
.linkbtn:hover{color:var(--light)}
.letter{width:min(680px,92vw);max-height:88vh;border:0;padding:0;background:#fff;color:var(--text)}
.letter::backdrop{background:rgba(0,0,0,.35)}
.letter__close{position:absolute;top:14px;right:18px}
.letter__paper{padding:50px 60px 56px}
.letter__paper p{margin-bottom:16px}
.letter__org{text-transform:uppercase;letter-spacing:.2em;font-size:11px}
.letter__sign{margin-top:28px}

/* Form (Contact Us template) */
.field{margin-bottom:28px}
.field label{display:block;padding-left:2px;margin-bottom:5px}
.field input,.field select,.field textarea{display:block;width:100%;font:inherit;color:inherit;background:#fff;border:0;border-bottom:1px solid #d8d7d5;border-radius:0;padding:1px 2px;height:24px;outline:none;appearance:none;-webkit-appearance:none}
.field textarea{height:101px;border:1px solid #d8d7d5;padding:4px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--text)}
.form__status{margin-top:14px;min-height:21px}
.form.sent .field,.form.sent .btn{display:none}

@media (max-width:1007px){
  .editorial{padding:89px 24px 80px}
  .editorial__figure img{height:auto;aspect-ratio:342/278}
  .grid{padding:15px 0 80px}
  .pdp{flex-direction:column;padding:0 0 60px}
  .pdp__gallery{flex:none;width:100%}
  .pdp__info{flex:none;width:100%;max-width:none;padding:30px 24px 0}
  .care{padding:35px 30px 80px;gap:0}
  .care__side{display:none}
  .btn--dark{width:80%}
  .gal{grid-template-columns:1fr;gap:50px;padding:50px 0 60px;justify-content:stretch}
  .gal__item img{width:100%;height:auto;aspect-ratio:2/3}
  .gal__text{margin:50px 0 0 50px;width:auto}
  .centered{padding:120px 24px 200px}
  .centered--first{padding-bottom:0}
  .centered--last{padding-top:80px}
  .letter__paper{padding:40px 28px 44px}
}

/* hand-drawn note arrow on the Nara slide, pointing at Daniel */
.hero__arrow{position:absolute;left:60.3%;top:43.3%;width:16.7%;height:auto;overflow:visible;pointer-events:none;filter:drop-shadow(0 0 6px rgba(0,0,0,.25))}
.hero__arrow path{stroke:#fff;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:1007px){.hero__arrow{left:66%;top:49.7%;width:32%}}

@font-face{font-family:"Caveat";font-weight:600;font-style:normal;font-display:swap;src:url("../fonts/caveat-latin-600-normal.woff2") format("woff2")}
.hero__note{position:absolute;left:77.6%;top:40%;font-family:"Caveat",cursive;font-weight:600;font-size:clamp(22px,2.1vw,30px);color:#fff;transform:rotate(-4deg);transform-origin:left center;white-space:nowrap;pointer-events:none;text-shadow:0 0 6px rgba(0,0,0,.25)}
@media (max-width:1007px){.hero__note{left:60%;top:43%;font-size:24px}}

@media (max-width:1007px){
  .hero__slide--fit{overflow:hidden;background:#2a1d14}
  .hero__slide--fit::before{content:"";position:absolute;inset:-60px;background:center/cover no-repeat;filter:blur(30px) saturate(1.15) brightness(.9)}
  .hero__slide--fit .hero__img{position:relative;object-fit:contain;object-position:50% 50%}
}
@media (max-width:1007px){
  .hero__slide--fit4::before{background-image:url(../images/hero-4-900.webp)}
  .hero__slide--fit5::before{background-image:url(../images/hero-5-900.webp)}
}

.footer__col--lead p{margin:0 0 8.55px}.footer__cv{margin-top:0}.footer__cv a{color:#212121}.footer__cv a:hover{color:var(--light)}
.vals{display:grid;grid-template-columns:1fr 1fr;gap:0 40px}
.vals ol{margin:0;padding:0 0 0 28px}.vals li{margin-bottom:26px;padding-left:6px}
@media (max-width:1007px){.vals{grid-template-columns:1fr}.vals ol+ol{margin-top:0}}
@media (max-width:640px){.grid{grid-template-columns:1fr;gap:28px}.card__img{border-radius:16px}}

/* Case study photo stack (click / swipe the top photo away) */
.cs{position:relative;aspect-ratio:617/540;cursor:pointer;touch-action:pan-y;user-select:none;-webkit-tap-highlight-color:transparent;outline:none;overflow:hidden}
.cs__card{position:absolute;left:12%;top:50%;width:76%;aspect-ratio:4/3;margin-top:-28.5%;transition:transform .7s cubic-bezier(.645,.045,.355,1);will-change:transform;backface-visibility:hidden}
.cs__card img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;background:var(--tile)}
.cs__card[data-p="0"]{z-index:4;transform:none}
.cs__card[data-p="1"]{z-index:3;transform:translate(-1.5%,1%) rotate(-4deg)}
.cs__card[data-p="2"]{z-index:2;transform:translate(1.5%,0) rotate(4.5deg)}
.cs__card[data-p="3"]{z-index:1;transform:translate(0,1.5%) rotate(-1.5deg)}
.cs__card.is-out-l{transform:translate(-125%,2%) rotate(-12deg)!important}
.cs__card.is-out-r{transform:translate(125%,2%) rotate(12deg)!important}
.cs__card.no-tr{transition:none!important}
.cs__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (prefers-reduced-motion:reduce){.cs__card{transition:none}}

.cs--p{aspect-ratio:4/5.2}
.cs--p .cs__card{left:10%;width:80%;aspect-ratio:4/5;margin-top:-50%;box-shadow:0 0 0 1px rgba(0,0,0,.09),0 10px 28px rgba(0,0,0,.10)}
