:root{
  --sand:#E6D8CC;
  --sand-lift:#EFE5DB;
  --sand-deep:#DCCBBC;
  --cocoa:#2B211B;
  --cocoa-soft:#6E5D51;
  --line:#CDBBAA;
  --roshan:#3F6157;
  --roshan-lift:#4E7568;
  --gold:#C9A063;
  --gold-deep:#9C7538;
  --nav-bg:#A77F60;
  /* mid-tone bar, so nav ink has to be full cocoa to stay readable */
  --nav-line:rgba(43,33,27,.22);
  --wrap:1180px;
  --gut:clamp(20px,5vw,64px);

  /* Material 3 components (material.js) take their colours and type from these,
     so any md-* element comes out in the site palette rather than Google's */
  --md-sys-color-primary:var(--roshan);
  --md-sys-color-on-primary:var(--sand-lift);
  --md-sys-color-primary-container:#C9D9D2;
  --md-sys-color-on-primary-container:#1F332D;
  --md-sys-color-secondary:var(--cocoa);
  --md-sys-color-on-secondary:var(--sand);
  --md-sys-color-secondary-container:var(--sand-deep);
  --md-sys-color-on-secondary-container:var(--cocoa);
  --md-sys-color-tertiary:var(--gold-deep);
  --md-sys-color-on-tertiary:var(--sand-lift);
  --md-sys-color-surface:var(--sand);
  --md-sys-color-surface-container-lowest:var(--sand-lift);
  --md-sys-color-surface-container-low:var(--sand-lift);
  --md-sys-color-surface-container:var(--sand);
  --md-sys-color-surface-container-high:var(--sand-deep);
  --md-sys-color-surface-container-highest:var(--sand-deep);
  --md-sys-color-on-surface:var(--cocoa);
  --md-sys-color-on-surface-variant:var(--cocoa-soft);
  --md-sys-color-outline:var(--cocoa-soft);
  --md-sys-color-outline-variant:var(--line);
  --md-sys-color-error:#A33A2C;
  --md-sys-color-on-error:#FFFFFF;
  --md-sys-color-shadow:var(--cocoa);
  --md-ref-typeface-brand:"Trebuchet MS",sans-serif;
  --md-ref-typeface-plain:"Trebuchet MS",sans-serif;
}
*{box-sizing:border-box;margin:0}
/* Material buttons set their own side padding on the element itself, and a
   page rule would override it, so they are left out of the padding reset, and
   so are the parts of a dialog, which md-dialog pads through ::slotted. That
   one sits in :where() so it adds no weight, or this reset would outrank every
   class rule on the page */
*:not(md-filled-button,md-filled-tonal-button,md-outlined-button,md-text-button,md-elevated-button,:where(md-dialog > [slot])){padding:0}
html{scroll-behavior:smooth}
/* jump targets (work.html#sahabat etc.) land below the sticky nav, not under it */
section[id]{scroll-margin-top:84px}

/* --- page scrollbar --- */
/* a nav-brown thumb on a sand track, inset so it reads as a capsule like the
   nav. Chrome ignores the ::-webkit-scrollbar rules once scrollbar-color is
   set, so the standard property is kept for browsers without them (Firefox). */
html::-webkit-scrollbar{width:12px;height:12px}
html::-webkit-scrollbar-track{background:var(--sand-deep)}
html::-webkit-scrollbar-thumb{background:var(--nav-bg);border-radius:999px;border:3px solid var(--sand-deep)}
html::-webkit-scrollbar-thumb:hover{background:var(--gold-deep)}
html::-webkit-scrollbar-thumb:active{background:var(--cocoa-soft)}
@supports not selector(::-webkit-scrollbar){
  html{scrollbar-color:var(--nav-bg) var(--sand-deep)}
}
/* on a phone-width screen the page scrolls with no bar at all */
@media(max-width:760px){
  html{scrollbar-width:none}
  html::-webkit-scrollbar{display:none}
}
body{
  background:var(--sand);
  color:var(--cocoa);
  font-family:"Trebuchet MS",sans-serif;
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:"Trebuchet MS",sans-serif;font-weight:500;line-height:1.05;letter-spacing:-0.02em}
a{color:inherit}
img{max-width:100%;display:block}

.wrap{max-width:var(--wrap);margin:0 auto;padding-left:var(--gut);padding-right:var(--gut)}

/* --- girih strapwork motif --- */
.lattice{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:.5}

/* --- nav --- */
/* the header is a sticky band carrying the same girih as the hero;
   the capsule floats inside it */
.nav{
  position:sticky;top:0;z-index:50;
  background:var(--sand);
  padding:16px var(--gut);transition:padding .25s;
}
.nav .lattice{opacity:.30}
.nav.scrolled{padding-top:10px;padding-bottom:10px}

/* the floating capsule — tall and open at rest, tightening once you scroll */
.nav-in{
  position:relative;  /* paint above the band's lattice */
  max-width:var(--wrap);margin:0 auto;
  background:var(--nav-bg);border-radius:999px;
  box-shadow:0 4px 20px rgba(43,33,27,.10);
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;
  padding:18px 20px 18px 34px;
  transition:padding .25s,box-shadow .25s;
}
.nav.scrolled .nav-in{
  padding-top:10px;padding-bottom:10px;
  box-shadow:0 8px 28px rgba(43,33,27,.16);
}
.brand{position:relative;display:flex;align-items:baseline;gap:9px;text-decoration:none;justify-self:start}
/* blackletter needs more size and open tracking to stay legible at nav scale */
.brand-name{font-family:"UnifrakturMaguntia",serif;font-size:27px;font-weight:400;letter-spacing:.01em;line-height:1}
/* Arabic needs ~1.2x the Latin size to look optically equal */
/* pinned, not inherited: the wordmark must not follow the body font */
.brand-ar{font-family:system-ui,sans-serif;font-size:26px;color:var(--cocoa);line-height:1}

/* the landing page has no nav link of its own -- the wordmark stands in for it,
   so it carries the same underline the links use */
.brand::after{
  content:"";position:absolute;left:0;right:0;bottom:-6px;
  height:2px;border-radius:2px;background:var(--roshan);opacity:0;transition:opacity .18s;
}
.brand:hover::after{opacity:.45}
.brand.active::after{opacity:1}

.nav-links{
  display:flex;align-items:center;gap:48px;justify-self:center;
  font-family:"Trebuchet MS",sans-serif;
  font-weight:700;font-style:normal;font-size:16px;
}
.nav-links a{text-decoration:none;color:var(--cocoa);position:relative}
/* hover and current-section share one underline, since the bar is too
   mid-toned to signal either with a colour shift */
.nav-links a::after{
  content:"";position:absolute;left:0;right:0;bottom:-6px;
  height:2px;border-radius:2px;background:var(--roshan);opacity:0;transition:opacity .18s;
}
.nav-links a:hover::after{opacity:.45}
.nav-links a.active::after{opacity:1}
/* plain Contact link, only used in the mobile panel where the CTA is hidden */
.nav-contact-link{display:none}

/* cocoa rather than the green the other filled buttons use: the nav bar is
   brown, and the dark button is what stands off it */
.nav-cta{
  justify-self:end;
  --md-filled-button-container-color:var(--cocoa);
  --md-filled-button-label-text-color:var(--sand);
  --md-filled-button-hover-label-text-color:var(--sand);
  --md-filled-button-focus-label-text-color:var(--sand);
  --md-filled-button-pressed-label-text-color:var(--sand);
  --md-filled-button-hover-state-layer-color:var(--sand);
  --md-filled-button-pressed-state-layer-color:var(--sand);
  --md-filled-button-label-text-weight:700;
  --md-filled-button-label-text-size:15px;
  --md-filled-button-container-height:44px;
  --md-filled-button-leading-space:26px;--md-filled-button-trailing-space:26px;
  --shape:22px;
}

/* --- menu button (mobile only) --- */
.nav-toggle{
  display:none;flex-direction:column;justify-content:center;gap:5px;
  width:42px;height:42px;padding:0;flex:none;
  background:none;border:1px solid var(--nav-line);border-radius:50%;cursor:pointer;
}
.nav-toggle span{
  display:block;width:18px;height:1.5px;margin:0 auto;background:var(--cocoa);
  transition:transform .2s,opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

@media(max-width:760px){
  /* two zones on a phone: brand, then the menu button */
  .nav-in{grid-template-columns:1fr auto;padding:10px 10px 10px 22px}
  .nav.scrolled .nav-in{padding-top:8px;padding-bottom:8px}
  .nav-toggle{display:flex;justify-self:end}
  .nav-cta{display:none}
  .nav-contact-link{display:block}
  /* the panel drops below the capsule and echoes its shape */
  .nav-links{
    /* an absolutely positioned child of a grid is placed against its grid
       area, not the container, so the panel has to claim the whole bar row
       or it lands in the narrow second column */
    grid-area:1 / 1 / 2 / 3;
    /* the bar centres its links on desktop, and that centring survives into
       the dropdown and shrink-wraps the panel unless it is cleared here */
    justify-self:stretch;
    position:absolute;top:100%;left:0;right:0;
    flex-direction:column;align-items:stretch;gap:0;
    background:var(--nav-bg);border-radius:28px;
    box-shadow:0 8px 28px rgba(43,33,27,.16);
    padding:6px 26px 14px;
    opacity:0;visibility:hidden;transform:translateY(-8px);
    transition:opacity .2s,transform .2s,visibility .2s;
  }
  .nav-links.open{opacity:1;visibility:visible;transform:none}
  .nav-links a{padding:15px 0;font-size:17px;border-bottom:1px solid var(--nav-line)}
  .nav-links a::after{display:none}
  .nav-links a.active{font-weight:600}
  .nav-links a:last-child{border-bottom:none}
}

/* --- hero --- */
.hero{
  position:relative;overflow:hidden;border-bottom:1px solid var(--line);
  /* a warm glow under the copy, so the cleared centre reads as light on the
     wall rather than a hole cut out of the strapwork. runs a little wider
     than the mask below, so the two edges never line up */
  background:radial-gradient(ellipse 32% 58% at 40.5% 51%,
              rgba(255,250,244,.50) 0%,
              rgba(247,239,231,.24) 46%,
              rgba(230,216,204,0)   80%);
}
.hero-in{position:relative;padding-top:clamp(70px,13vw,140px);padding-bottom:clamp(64px,11vw,120px);max-width:860px}
/* the green lives here, in the label and a short rule, so the headline itself stays one colour */
.eyebrow{font-size:clamp(17px,2vw,20px);letter-spacing:.16em;text-transform:uppercase;color:var(--roshan);margin-bottom:26px}
.eyebrow::before{content:"";display:block;width:36px;height:2px;background:var(--roshan);margin-bottom:14px}
.hero h1{font-size:clamp(52px,10.5vw,116px);margin-bottom:26px}
/* no ch cap: the line is meant to run unbroken, wrapping only once the viewport forces it */
.hero-tail{width:fit-content}
.hero-sub{font-size:clamp(18px,2.3vw,22px);color:var(--cocoa-soft);margin-bottom:38px;text-align:center}
.hero-tail .btn-hero{display:flex;width:fit-content;margin-inline:auto}
/* the pattern covers the whole hero but is masked away from the copy,
   so no strapwork ever sits directly behind the words. the ellipse is fitted
   to the text block: clear to its edge, then a short fade back to full pattern */
.hero .lattice{
  -webkit-mask-image:radial-gradient(ellipse 28% 53% at 40.5% 51%,transparent 73%,#000 100%);
          mask-image:radial-gradient(ellipse 28% 53% at 40.5% 51%,transparent 73%,#000 100%);
}
@media(max-width:820px){
  /* stacked layout: the copy fills the width, so clear the top instead */
  .hero .lattice{
    -webkit-mask-image:linear-gradient(to bottom,transparent 58%,#000 92%);
            mask-image:linear-gradient(to bottom,transparent 58%,#000 92%);
  }
  /* the hand-placed break lands mid-thought once the line wraps on its own */
  .hero-sub br{display:none}
}

/* --- buttons: Material 3 (md-* elements, loaded by material.js) ---
   Colours come from the --md-sys-* palette tokens up top. Each button sets
   --shape, its corner radius at rest, and every Material shape token reads it.
   --shape is a registered length so it can animate: a press squares the
   corners up (M3's expressive shape morph) and a release springs them back. */
@property --shape{syntax:"<length>";inherits:false;initial-value:20px}
md-filled-button,md-filled-tonal-button,md-outlined-button,
md-filled-icon-button,md-filled-tonal-icon-button{
  --md-filled-button-container-shape:var(--shape);
  --md-filled-tonal-button-container-shape:var(--shape);
  --md-outlined-button-container-shape:var(--shape);
  --md-filled-icon-button-container-shape:var(--shape);
  --md-filled-tonal-icon-button-container-shape:var(--shape);
  --md-filled-button-label-text-size:15px;
  --md-filled-tonal-button-label-text-size:15px;
  --md-outlined-button-label-text-size:15px;
  --md-filled-button-container-height:48px;
  --md-filled-tonal-button-container-height:48px;
  --md-outlined-button-container-height:48px;
  --shape:24px;
  transition:--shape .45s cubic-bezier(.34,1.56,.64,1);
}
:is(md-filled-button,md-filled-tonal-button,md-outlined-button,
    md-filled-icon-button,md-filled-tonal-icon-button):active{
  --shape:10px;
  transition-duration:.12s;transition-timing-function:ease-out;
}

/* the hero's call to action: bigger, and its arrow leans forward on hover */
.btn-hero{
  --md-filled-button-container-height:58px;
  --md-filled-button-label-text-size:17px;
  --md-filled-button-with-trailing-icon-leading-space:32px;
  --md-filled-button-with-trailing-icon-trailing-space:26px;
  --md-filled-button-icon-size:20px;
  --shape:29px;
}
.btn-hero svg{transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
.btn-hero:hover svg{transform:translateX(4px)}

/* before material.js has defined them, the buttons are plain inline text;
   hold their space as a pill so nothing jumps when they upgrade */
:is(md-filled-button,md-filled-tonal-button,md-outlined-button):not(:defined){
  display:inline-flex;align-items:center;height:48px;padding:0 24px;border-radius:24px;
  background:var(--sand-lift);color:transparent;overflow:hidden;
}
:is(md-filled-button,md-filled-tonal-button,md-outlined-button):not(:defined) svg,
:is(md-filled-button,md-filled-tonal-button,md-outlined-button):not(:defined) img,
:is(md-filled-icon-button,md-filled-tonal-icon-button):not(:defined){visibility:hidden}

/* --- generic section --- */
.sec{padding-top:clamp(64px,9vw,110px);padding-bottom:clamp(64px,9vw,110px);border-bottom:1px solid var(--line)}
.sec-grid{display:grid;grid-template-columns:170px 1fr;gap:clamp(24px,5vw,72px);align-items:start}
.sec-grid > *{min-width:0}
@media(max-width:820px){.sec-grid{grid-template-columns:1fr;gap:28px}}
.sec-label{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--cocoa-soft);padding-top:9px}

/* --- sections that carry the hero wall --- */
/* sand ground with the same deep-gold girih at the same weight, so these
   sections and the hero read as one surface */
.sec-wall{position:relative;overflow:hidden}
/* direct child only: the card visuals carry their own gold lattice */
.sec-wall > .lattice{opacity:.12}
/* the lattice is positioned, so in-flow content would paint under it: lift the
   grid the same way the hero and the nav capsule lift theirs */
.sec-wall .sec-grid{position:relative}

/* --- services --- */
.svc{border-top:2px solid var(--nav-bg)}
.svc-row{display:grid;grid-template-columns:1fr 1.15fr;gap:clamp(16px,4vw,56px);padding:30px 0;border-bottom:2px solid var(--nav-bg)}
.svc-row h3{font-size:clamp(24px,3.4vw,34px);color:var(--roshan)}
.svc-row p{color:var(--cocoa-soft)}
@media(max-width:660px){.svc-row{grid-template-columns:1fr;gap:10px}}
.svc-extra{margin-top:28px;font-size:15px;color:var(--cocoa-soft);max-width:56ch}

/* --- work --- */
.work-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:clamp(20px,3vw,34px)}
/* solid fill, so the section girih stops at the card edge and the body
   stays a plain surface to read on */
/* the work cards are arches too (see the arch boxes below); the picture at the
   top takes the curve itself, so the card needs no overflow:hidden to shape it
   and md-elevation's shadow is left free to fall outside the card */
.card{--arch:96px;display:flex;flex-direction:column}
/* the title link stretches over the whole card, so a click anywhere opens the project
   on the work page; the live-site link sits above it and still goes out */
.card-main{color:inherit;text-decoration:none}
.card-main::after{content:"";position:absolute;inset:0}
.card-main:focus-visible{outline:none}
.card:has(.card-main:focus-visible){outline:2px solid var(--roshan);outline-offset:3px}
.card:hover md-elevation{--md-elevation-level:3}
.card-vis{aspect-ratio:16/10;background:var(--cocoa);position:relative;overflow:hidden;border-radius:50% 50% 0 0 / var(--arch) var(--arch) 0 0}
.card-body{padding:24px;flex:1;display:flex;flex-direction:column}
.card-body h3{font-size:24px;margin-bottom:6px}
.card-meta{font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--cocoa-soft);margin-bottom:14px}
.card-body p{font-size:15px;color:var(--cocoa-soft);margin-bottom:16px}
.card-link{position:relative;z-index:1;font-size:15px;color:var(--roshan);text-decoration:none;border-bottom:1px solid var(--roshan);padding-bottom:2px;margin-top:auto;align-self:flex-start}
.tags{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}
.tag{font-size:12px;border:1px solid var(--line);border-radius:999px;padding:4px 12px;color:var(--cocoa-soft)}

/* All four projects on one line. Four cards need more room than the 1fr column
   beside the section label leaves, so on wide screens the label moves above the
   row and the grid takes the full wrap width. Below that it falls back to the
   auto-fit flow: two across, then one. */
@media(min-width:1080px){
  #work .sec-grid{grid-template-columns:1fr;gap:0}
  #work .sec-label{padding-top:0;margin-bottom:clamp(24px,3vw,38px)}
  #work .work-grid{grid-template-columns:repeat(4,1fr)}
  #work .card-body{padding:20px}
  #work .card-body h3{font-size:20px}
  #work .card-meta{font-size:12px;letter-spacing:.08em}
}

/* --- floating whatsapp --- */
/* Bottom right on every page, as a Material 3 FAB: a rounded square rather
   than a circle, lifted by <md-elevation>, with <md-ripple> for hover and
   press. It stays a plain link, since md-fab can't be one. Green, not cocoa,
   so it still stands out when it floats over the cocoa contact band. */
.wa-float{
  position:fixed;z-index:60;
  right:clamp(16px,3vw,28px);
  bottom:calc(clamp(16px,3vw,28px) + env(safe-area-inset-bottom, 0px));
  width:56px;height:56px;border-radius:var(--shape);
  display:grid;place-items:center;
  background:var(--roshan);color:var(--sand-lift);
  --shape:18px;--md-elevation-level:3;
  --md-ripple-hover-color:var(--sand);--md-ripple-pressed-color:var(--sand);
  transition:--shape .45s cubic-bezier(.34,1.56,.64,1);
}
.wa-float:hover{--md-elevation-level:4}
.wa-float:active{--shape:12px;transition-duration:.12s}
.wa-float svg{width:29px;height:29px;position:relative}
.wa-float:focus-visible{outline:2px solid var(--roshan);outline-offset:3px}
@media(max-width:760px){
  .wa-float{width:52px;height:52px;--shape:16px}
  .wa-float svg{width:27px;height:27px}
}

@media(prefers-reduced-motion:reduce){
  .wa-float,md-filled-button,md-filled-tonal-button,md-outlined-button,
  md-filled-icon-button,md-filled-tonal-icon-button{transition:none}
  .btn-hero:hover svg{transform:none}
}

/* --- work screenshots --- */
/* The site playing sits on top at the full width of the column, with the copy
   under it, so the video is big enough to actually read. The shot sits in a
   cocoa mat with a gold hairline, so a light page has a dark edge to sit
   against and a dark one has the gold to lift it off the sand. */
.work-entry{
  display:grid;grid-template-columns:minmax(0,1fr);
  gap:clamp(30px,4vw,52px);align-items:start;
}
.work-entry > .entry-copy{max-width:68ch}
.shot{
  position:relative;
  background:var(--cocoa);
  border:1px solid var(--gold);
  border-radius:18px;
  padding:clamp(10px,1.2vw,14px);
  box-shadow:0 10px 30px rgba(43,33,27,.18);
}
.shot img{
  width:100%;height:auto;display:block;
  border-radius:9px;
}
/* placeholder for a project with no screenshot yet */
.shot-empty{aspect-ratio:16/10;padding:0;overflow:hidden}
.shot-empty > .lattice{opacity:.55}

/* --- work showcase: each site playing in a laptop window with its phone view beside it --- */
/* The browser window keeps the cocoa mat and gold hairline of the old shot.
   The phone leans against its lower right corner, and both drift a little out
   of step so the pair never sits dead still. Videos play only while on screen
   (site.js), and the toggle stops both for anyone who wants them still. */
.showcase{position:relative;padding:0 clamp(28px,5vw,58px) clamp(38px,5vw,60px) 0}
.browser{
  position:relative;background:var(--cocoa);border:1px solid var(--gold);border-radius:16px;
  padding:0 10px 10px;box-shadow:0 14px 34px rgba(43,33,27,.22);
  transform:rotate(-1.2deg);transition:transform .45s cubic-bezier(.22,.7,.3,1),box-shadow .45s;
  animation:bob 6s ease-in-out infinite;
}
.browser-bar{display:flex;align-items:center;gap:12px;padding:10px 4px;text-decoration:none;color:var(--sand)}
.browser-dots{display:flex;gap:6px;flex:none}
.browser-dots i{width:10px;height:10px;border-radius:50%;background:#E2725B}
.browser-dots i:nth-child(2){background:var(--gold)}
.browser-dots i:nth-child(3){background:var(--roshan-lift)}
.browser-url{
  flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  background:rgba(230,216,204,.1);border-radius:999px;padding:4px 14px;font-size:12.5px;letter-spacing:.02em;color:#B9A99C;
  transition:background .2s,color .2s;
}
.browser-go{flex:none;font-size:15px;color:var(--gold);transition:transform .2s}
.browser-bar:hover .browser-url{background:rgba(230,216,204,.18);color:var(--sand)}
.browser-bar:hover .browser-go{transform:translate(2px,-2px)}
.browser-bar:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:8px}
.browser-screen{position:relative;border-radius:8px;overflow:hidden;background:var(--sand-deep)}
.browser .showcase-vid{display:block;width:100%;height:auto}

/* before and after share the screen; the switch cross-fades between them and
   sends the phone off, since there is no phone recording of the old site */
.browser .is-before{position:absolute;inset:0;height:100%;object-fit:cover;object-position:top;opacity:0;transition:opacity .5s}
.browser-sticker{
  position:absolute;top:10px;right:10px;padding:4px 10px;border-radius:999px;
  background:var(--gold);color:var(--cocoa);font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  opacity:0;transform:rotate(6deg) scale(.6);transition:opacity .3s,transform .4s cubic-bezier(.3,1.6,.5,1);
}
.showcase[data-era="before"] .is-before{opacity:1}
.showcase[data-era="before"] .browser-sticker{opacity:1;transform:rotate(6deg) scale(1)}
.showcase[data-era="before"] .phone{opacity:0;transform:translateY(34px) rotate(9deg) scale(.85);pointer-events:none}

.phone{
  position:absolute;right:0;bottom:0;width:clamp(96px,22%,190px);
  background:var(--cocoa);border:1px solid var(--gold);border-radius:22px;padding:7px;
  box-shadow:0 16px 30px rgba(43,33,27,.3);
  transform:rotate(5deg);transition:transform .45s cubic-bezier(.22,.7,.3,1),opacity .35s;
  animation:bob 6s ease-in-out -3s infinite;
}
.phone::before{content:"";display:block;width:34%;height:5px;margin:1px auto 6px;border-radius:999px;background:rgba(230,216,204,.22)}
.phone .showcase-vid{display:block;width:100%;height:auto;aspect-ratio:390/844;object-fit:cover;object-position:top;border-radius:15px;background:var(--sand-deep)}

/* hover straightens the pair up and pulls them apart a touch */
.showcase:hover .browser{transform:rotate(0) translateY(-4px);box-shadow:0 22px 44px rgba(43,33,27,.26)}
.showcase:hover .phone{transform:rotate(0) translate(8px,6px)}
.showcase:hover .browser,.showcase:hover .phone{animation-play-state:paused}

.showcase-controls{position:absolute;left:14px;bottom:4px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.showcase-era{display:inline-flex;padding:3px;border:1px solid var(--line);border-radius:999px}
.showcase-era button{
  background:transparent;border:0;border-radius:999px;padding:3px 11px;cursor:pointer;
  font:inherit;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--cocoa-soft);
  transition:background .25s,color .25s;
}
.showcase-era button[aria-pressed="true"]{background:var(--roshan);color:var(--sand)}
.showcase-era button:hover:not([aria-pressed="true"]){color:var(--roshan)}
.showcase-era button:focus-visible{outline:2px solid var(--roshan);outline-offset:2px}
.showcase-toggle{
  display:inline-flex;align-items:center;gap:7px;
  background:transparent;border:1px solid var(--line);border-radius:999px;padding:5px 13px 5px 11px;
  font:inherit;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--cocoa-soft);cursor:pointer;
  transition:border-color .2s,color .2s;
}
.showcase-toggle::before{content:"";width:8px;height:8px;border-radius:50%;background:#E2725B;animation:pulse 1.6s ease-in-out infinite}
.showcase-toggle[aria-pressed="true"]::before{background:var(--cocoa-soft);animation:none}
.showcase-toggle:hover{border-color:var(--roshan);color:var(--roshan)}
.showcase-toggle:focus-visible{outline:2px solid var(--roshan);outline-offset:2px}

@keyframes bob{0%,100%{translate:0 0}50%{translate:0 -6px}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){
  .browser,.phone,.showcase-toggle::before{animation:none}
}

/* --- steps --- */
.steps{counter-reset:s;display:grid;gap:0}
.step{display:grid;grid-template-columns:52px 1fr;gap:20px;padding:26px 0;border-bottom:2px solid var(--nav-bg)}
.step:first-child{border-top:2px solid var(--nav-bg)}
.step-n{font-family:"Trebuchet MS",sans-serif;font-size:15px;color:var(--roshan);padding-top:5px}
.step h3{font-size:21px;margin-bottom:5px;color:var(--roshan)}
.step p{color:var(--cocoa-soft);font-size:16px;max-width:58ch}

/* --- arch boxes (people, clips) ---
   Material 3's arch shape: an elliptical top on a flat foot, like a doorway.
   Each box sets --arch, the height of its curve. No border: an <md-elevation>
   inside gives the edge, and takes the arch from border-radius:inherit. */
.card,.person,.clip{
  position:relative;background:var(--sand-lift);
  border-radius:50% 50% 8px 8px / var(--arch) var(--arch) 8px 8px;
  --md-elevation-level:1;
}

/* --- people --- */
.people{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:clamp(20px,3vw,34px)}
/* the two of us sit in the same boxes the work cards use, so the section
   girih stops at the edge and each bio reads on a plain surface */
.person{--arch:120px;padding:34px 24px 24px;display:flex;flex-direction:column;align-items:flex-start}
.person:hover md-elevation{--md-elevation-level:3}
/* the photo is a small arch inside the big one: a half-circle top on a flat foot */
.person-photo{align-self:center;width:64px;height:80px;border-radius:32px 32px 8px 8px;background:var(--sand-deep);display:flex;align-items:center;justify-content:center;font-family:"Trebuchet MS",sans-serif;font-size:20px;color:var(--cocoa-soft);margin-bottom:22px}
.person h3{font-size:24px;margin-bottom:3px;color:var(--roshan)}
.person-role{font-size:14px;letter-spacing:.09em;text-transform:uppercase;color:var(--roshan);margin-bottom:14px}
.person p{color:var(--cocoa-soft);font-size:16px;margin-bottom:14px}
/* the link drops to the foot of the box, so both cards line up whatever the bio length */
.person-links{margin-top:auto;display:flex;flex-wrap:wrap;gap:6px 20px}
.person a{font-size:15px;color:var(--cocoa-soft);text-decoration:none;border-bottom:1px solid var(--line)}
.person a:hover{color:var(--cocoa);border-color:var(--cocoa)}
.sib-note{font-size:clamp(20px,2.6vw,26px);font-family:"Trebuchet MS",sans-serif;margin-bottom:38px;max-width:24ch;line-height:1.2;color:var(--roshan)}

/* --- contact, which closes every page in place of a footer --- */
/* shallower than a normal section and laid out as a band: the ask on the
   left, a way to reach each side of the studio on the right */
.contact{background:var(--cocoa);color:var(--sand);position:relative;overflow:hidden;border-bottom:none;padding-top:clamp(44px,5.5vw,64px);padding-bottom:clamp(44px,5.5vw,64px)}
.contact .sec-grid > div{display:grid;grid-template-columns:1fr;gap:10px}
/* stacked: the heading on one line, the note under it, then a row of ways to reach us */
.contact h2{font-size:clamp(28px,4vw,44px);margin-bottom:6px}
.contact p{color:#B9A99C;font-size:16px;margin-bottom:0}
.contact .sec-label{color:#8D7C70}
.cbtns{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;margin-top:22px}
/* every way to reach us reads the same on the cocoa band: Material tonal
   buttons in lifted sand with cocoa lettering */
.cbtns{
  --md-filled-tonal-button-container-color:var(--sand-lift);
  --md-filled-tonal-button-label-text-color:var(--cocoa);
  --md-filled-tonal-button-hover-label-text-color:var(--cocoa);
  --md-filled-tonal-button-focus-label-text-color:var(--cocoa);
  --md-filled-tonal-button-pressed-label-text-color:var(--cocoa);
  --md-filled-tonal-icon-button-container-color:var(--sand-lift);
  --md-filled-tonal-icon-button-icon-color:var(--cocoa);
  --md-filled-tonal-icon-button-hover-icon-color:var(--cocoa);
  --md-filled-tonal-icon-button-focus-icon-color:var(--cocoa);
  --md-filled-tonal-icon-button-pressed-icon-color:var(--cocoa);
  --md-filled-tonal-icon-button-container-width:48px;
  --md-filled-tonal-icon-button-container-height:48px;
  --md-filled-tonal-icon-button-icon-size:22px;
  --md-filled-tonal-button-with-leading-icon-leading-space:18px;
}
/* a flag on each WhatsApp button says which side of the studio it reaches */
.btn-flag{--md-filled-tonal-button-icon-size:18px}
.btn-flag img{width:auto;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.12)}


/* --- entrance --- */
.rise{opacity:0;transform:translateY(14px);animation:rise .7s cubic-bezier(.22,.7,.3,1) forwards}
.d1{animation-delay:.05s}.d2{animation-delay:.14s}.d3{animation-delay:.23s}.d4{animation-delay:.32s}
@keyframes rise{to{opacity:1;transform:none}}

/* --- link out of a teaser section into its own page --- */
.sec-more{
  display:inline-flex;align-items:center;gap:8px;margin-top:30px;
  font-size:15px;color:var(--roshan);text-decoration:none;
  border-bottom:1px solid var(--roshan);padding-bottom:2px;
}
.sec-more:hover{color:var(--cocoa);border-color:var(--cocoa)}
.sec-more span{transition:transform .18s}
.sec-more:hover span{transform:translateX(3px)}

/* --- page hero: the sub-page opener, shorter than the home hero --- */
.phero{position:relative;overflow:hidden;border-bottom:1px solid var(--line)}
.phero-in{position:relative;padding-top:clamp(52px,8vw,90px);padding-bottom:clamp(44px,7vw,74px);max-width:820px}
.phero h1{font-size:clamp(40px,7.5vw,78px);margin-bottom:20px}
.phero p{font-size:clamp(17px,2vw,20px);color:var(--cocoa-soft);max-width:50ch}
.phero .eyebrow{color:var(--roshan)}
/* the copy runs full width here, so clear the pattern off the top instead */
.phero .lattice{
  -webkit-mask-image:linear-gradient(to bottom,transparent 46%,#000 96%);
          mask-image:linear-gradient(to bottom,transparent 46%,#000 96%);
}

/* --- longer-form copy on the sub-pages --- */
.lede{font-family:"Trebuchet MS",sans-serif;font-size:clamp(20px,2.6vw,26px);line-height:1.25;max-width:26ch;margin-bottom:32px;color:var(--roshan)}
.body-copy p{color:var(--cocoa-soft);max-width:62ch;margin-bottom:15px}
.body-copy p:last-child{margin-bottom:0}
.bullets{list-style:none;margin-top:18px;max-width:62ch}
/* a rotated square, echoing the diamonds in the girih */
.bullets li{position:relative;padding-left:23px;margin-bottom:9px;color:var(--cocoa-soft)}
.bullets li::before{content:"";position:absolute;left:0;top:11px;width:7px;height:7px;background:var(--gold);transform:rotate(45deg)}

/* --- one service, spelled out --- */
.svc-detail{padding:clamp(26px,4vw,42px) 0;border-bottom:2px solid var(--nav-bg)}
.svc-detail:first-child{border-top:2px solid var(--nav-bg)}
.svc-detail h3{font-size:clamp(26px,3.6vw,38px);margin-bottom:12px;color:var(--roshan)}

/* --- writing clips --- */
/* The clips run as a slider: two cards to a screen on desktop, one on a phone,
   scroll-snapped so a swipe lands a card square. The arrows slide the cards
   with a transform (site.js), which stays smooth where stepping the scroll
   position would judder. */
.clips{border-top:2px solid var(--nav-bg);padding-top:clamp(22px,3vw,30px)}
/* the row's own overflow is switched off while the arrows slide it, so the
   parent clips it in the meantime */
.clips:has(.is-sliding){overflow-x:clip}
.clips-track.is-sliding{overflow:visible;scroll-snap-type:none}
.clips-track{
  display:flex;gap:clamp(16px,2vw,24px);
  overflow-x:auto;scroll-snap-type:x mandatory;
  /* room for the cards' shadows, which the scroll box would otherwise cut off */
  padding:6px 3px 12px;margin:-6px -3px 0;scroll-padding-inline:3px;
  scrollbar-width:none;-ms-overflow-style:none;
}
.clips-track::-webkit-scrollbar{display:none}
.clips-track:focus-visible{outline:2px solid var(--roshan);outline-offset:4px;border-radius:16px}
.clip{
  --arch:96px;
  flex:0 0 100%;scroll-snap-align:start;
  /* text starts low enough to clear the curve at the arch's shoulders */
  padding:72px 24px 24px;display:flex;flex-direction:column;align-items:flex-start;
}
@media(min-width:900px){
  .clip{flex-basis:calc(50% - clamp(8px,1vw,12px))}
}
.clip > div{display:flex;flex-direction:column;align-items:flex-start;height:100%}
.clip-meta{font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--cocoa-soft);margin-bottom:12px}
/* last card hands the reader on to her LinkedIn */
.clip.clip-end{background:var(--cocoa);border:1px solid var(--gold);justify-content:center}
.clip.clip-end h3{color:var(--sand)}
.clip.clip-end p{color:#B9A99C}
.clip-end-btns{
  display:flex;flex-wrap:wrap;gap:10px;
  /* the outlined button sits on cocoa, so its line and text go light */
  --md-outlined-button-label-text-color:var(--sand);
  --md-outlined-button-hover-label-text-color:var(--sand);
  --md-outlined-button-focus-label-text-color:var(--sand);
  --md-outlined-button-pressed-label-text-color:var(--sand);
  --md-outlined-button-outline-color:rgba(230,216,204,.45);
  --md-outlined-button-hover-state-layer-color:var(--sand);
  --md-outlined-button-pressed-state-layer-color:var(--sand);
}
.clips-nav{display:flex;align-items:center;gap:12px;margin-top:clamp(20px,2.5vw,28px)}
.clips-btn{
  --md-filled-icon-button-container-width:48px;
  --md-filled-icon-button-container-height:48px;
  --md-filled-icon-button-icon-size:22px;
}
.clips-count{font-size:13px;letter-spacing:.12em;color:var(--cocoa-soft);margin-left:6px}
.clip h3{font-size:21px;margin-bottom:6px;color:var(--roshan)}
.clip p{color:var(--cocoa-soft);font-size:16px;max-width:60ch;margin-bottom:12px}
.clip-link{font-size:15px;color:var(--roshan);text-decoration:none;border-bottom:1px solid var(--roshan);padding-bottom:2px;margin-top:auto}
@media(max-width:660px){.clip{grid-template-columns:1fr;gap:6px}}

/* --- a block waiting on real content; delete the box once it is filled --- */
.todo{
  background:var(--sand-lift);border:1px dashed var(--line);border-radius:12px;
  padding:17px 21px;margin-top:24px;max-width:62ch;font-size:15px;color:var(--cocoa-soft);
}
.todo strong{color:var(--cocoa);font-weight:600}

:focus-visible{outline:2px solid var(--roshan);outline-offset:3px}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
  .rise{opacity:1;transform:none}
}

/* --- start a project dialog (site.js) ---
   A Material 3 dialog, outlined fields and filter chips, all in the site
   palette. The sand-lift sheet sits on a cocoa scrim. */
.project-dialog{
  --md-dialog-container-color:var(--sand-lift);
  --md-dialog-container-shape:28px;
  --md-dialog-headline-color:var(--cocoa);
  --md-dialog-headline-font:"Trebuchet MS",sans-serif;
  --md-dialog-headline-size:26px;
  --md-dialog-headline-weight:500;
  --md-dialog-supporting-text-color:var(--cocoa-soft);
  --md-dialog-supporting-text-font:"Trebuchet MS",sans-serif;
  --md-sys-color-scrim:var(--cocoa);
  width:min(560px, calc(100vw - 32px));
  max-width:none;
  margin:auto; /* md-dialog centres itself with margin, which the reset zeroes */
}
.project-dialog:not(:defined){display:none}
/* the form, the thank-you and the Send button swap with [hidden], which their
   own display rules would otherwise override */
.project-dialog [hidden]{display:none}
.project-form{display:flex;flex-direction:column;gap:16px;padding-top:4px}
.project-form md-outlined-text-field{
  width:100%;
  --md-outlined-text-field-container-shape:14px;
  --md-outlined-text-field-input-text-font:"Trebuchet MS",sans-serif;
  --md-outlined-text-field-label-text-font:"Trebuchet MS",sans-serif;
}
.project-intro{font-size:16px;color:var(--cocoa-soft)}
.project-needs-label{font-size:14px;color:var(--cocoa-soft);margin-bottom:8px}
.project-needs md-filter-chip{
  --md-filter-chip-container-shape:10px;
  --md-filter-chip-label-text-font:"Trebuchet MS",sans-serif;
  --md-filter-chip-selected-container-color:var(--md-sys-color-primary-container);
}
.project-honey{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.project-error{font-size:15px;color:var(--md-sys-color-error)}
.project-error a{color:inherit}
.project-done{padding-top:8px;font-size:16px;color:var(--cocoa-soft)}
.project-done-title{font-size:20px;color:var(--roshan);margin-bottom:6px}
