/* Studio Zurich
   One file for both languages. Change the tokens below, everything follows.
   Dark mode follows the system setting automatically.
   Type scale follows apple.com (sizes, line heights, weights, tracking). */

:root {
  color-scheme: light dark;

  /* Colours (text colours as on apple.com) */
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --link: #0071e3;      /* Apple blue: logo, links, band */
  --band: #0071e3;
  --on-band: #ffffff;   /* 4.7:1 on --band, passes WCAG AA */
  --bg: #ffffff;
  --surface: #f5f5f7;
  --tile: #ffffff;
  --tile-edge: rgba(0, 0, 0, .10);
  --tile-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 16px rgba(0, 0, 0, .05);
  --tile-shadow-hover: 0 2px 6px rgba(0, 0, 0, .06), 0 16px 40px rgba(0, 0, 0, .12);

  /* Layout */
  --icon: 128px;        /* app tile size on desktop */
  --portrait: 160px;    /* team photo size */
  --measure: 34rem;     /* max text width */

  /* Fonts: SF Pro Display from 20px up, SF Pro Text below (as Apple does).
     On non-Apple devices these fall back to the system UI font. */
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, sans-serif;
  --text-face: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --text-secondary: #86868b;
    --link: #2997ff;
    --band: #0066cc;
    --bg: #1c1d1f;
    --surface: #26282b;
    --tile: #2c2e31;
    --tile-edge: rgba(255, 255, 255, .08);
    --tile-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 6px 16px rgba(0, 0, 0, .2);
    --tile-shadow-hover: 0 2px 6px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .45);
  }
}

/* ── Type scale (apple.com) ───────────────
   name in Apple's CSS         size/line   weight  tracking
   page-header-title           64/68       600     -0.009em   → h1
   section-header-headline     40/44       600      0         → h2
   tile-subhead                24/28       400      0.009em   → .lead
   feature-card-headline       24/28       600      0.009em   → .services h3
   intro                       21/25       400      0.011em   → .facts
   body                        17/25       400     -0.022em   → body, card text
   label (positioning)         17/21       600     -0.022em   → person names
   caption                     14/18       400     -0.016em   → roles, top bar
   footnote                    12/16       400     -0.01em    → app names
   Phones (≤734px) step down like apple.com: 40/44, 32/36, 21/25, 19/23. */


/* ── Base ─────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 17px/25px var(--text-face);
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, .lead { text-wrap: balance; }  /* even line lengths, no orphans */

h1 { font: 600 64px/68px var(--display); letter-spacing: -0.009em; }
h2 { font: 600 40px/44px var(--display); letter-spacing: 0; margin-bottom: 40px; }

/* ── Top bar ──────────────────────────── */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font: 400 14px/18px var(--text-face);   /* caption */
  letter-spacing: -0.016em;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.brand img {
  width: 24px;
  height: 24px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 0.5px var(--tile-edge), 0 1px 3px rgba(0, 0, 0, .08);  /* same family as the app tiles */
}

.lang { color: var(--text-secondary); }
.lang:hover { color: var(--text); }

/* ── Hero ─────────────────────────────── */

.hero {
  padding: clamp(80px, 16vh, 150px) 16px 40px;
  text-align: center;
}

.lead {
  max-width: var(--measure);
  margin: 16px auto 0;
  font: 400 24px/28px var(--display);   /* tile-subhead */
  letter-spacing: 0.009em;
}
.lead a { color: var(--link); }
.lead a:hover { text-decoration: underline; }

/* App tiles: white in light mode, dark in dark mode.
   Logos with a -dark variant swap automatically (see <picture> in the HTML). */

.apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 36px;
  margin: 72px auto 0;
  max-width: 920px;
}

.apps a {
  display: block;
  width: var(--icon);
}

.tile {
  display: grid;
  place-items: center;
  width: var(--icon);
  height: var(--icon);
  background: var(--tile);
  border-radius: 22.5%;
  box-shadow: 0 0 0 0.5px var(--tile-edge), var(--tile-shadow);
  transition: box-shadow .3s ease;
}
.apps a:hover .tile { box-shadow: 0 0 0 0.5px var(--tile-edge), var(--tile-shadow-hover); }

.tile picture { display: contents; }
.tile source { display: none; }  /* keep <source> out of the grid so logos stay centred */

.tile img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}
.tile img.wide { width: 58%; }  /* wide wordmarks like the Wikipedia W */
.tile img.tall { height: 54%; }  /* tall marks like the Bring! bag */

.name {
  display: block;
  margin-top: 12px;
  font: 400 12px/16px var(--text-face);   /* footnote */
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

/* ── Sections ─────────────────────────── */

.section {
  padding: 80px 16px;
  text-align: center;
}

/* Services */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;   /* apple.com content width */
  margin: 0 auto;
}

.services > div {
  padding: 32px 28px;
  background: var(--surface);
  border-radius: 18px;
}

.services h3 {
  font: 600 24px/28px var(--display);   /* feature-card-headline */
  letter-spacing: 0.009em;
}

.services p {
  margin-top: 8px;
  color: var(--text-secondary);          /* body */
}

/* Blue band (used on Let’s talk, the last section) */

.band {
  background: var(--band);
  color: var(--on-band);
}
.section.band :is(h2, h3, p) { color: var(--on-band); }  /* wins over grey secondary text */
.section.band .lead a {
  color: var(--on-band);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.section.band .lead a:hover { text-decoration-thickness: 2px; }
.contact.band { padding-top: 96px; padding-bottom: 112px; }

/* Why us: 2×2, plain text (no cards, so it reads apart from the services) */

.why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px;
  max-width: 820px;
  margin: 0 auto;
}

.why h3 {
  font: 600 21px/25px var(--display);   /* eyebrow */
  letter-spacing: 0.011em;
  text-wrap: balance;
}

.why p {
  margin-top: 8px;
  color: var(--text-secondary);          /* body */
  text-wrap: pretty;
}

/* Facts */

.facts {
  max-width: 40rem;
  text-wrap: balance;
  margin: 0 auto;
  font: 400 21px/25px var(--display);   /* intro */
  letter-spacing: 0.011em;
}
.facts li + li { margin-top: 14px; }

/* Team */

.team {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.person img {
  width: var(--portrait);
  height: var(--portrait);
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.person a:hover img { transform: scale(1.03); }

.person h3 {
  font: 600 17px/21px var(--text-face);  /* label */
  letter-spacing: -0.022em;
}

.person p {
  margin-top: 2px;
  font: 400 14px/18px var(--text-face);  /* caption */
  letter-spacing: -0.016em;
  color: var(--text-secondary);
}

.person .prev { margin-top: 6px; }
.prev a { color: var(--link); }
.prev a:hover { text-decoration: underline; }

/* Contact */

.contact h2 { margin-bottom: 0; }

/* ── Logo mark ────────────────────────── */

.tilde {
  position: relative;
  top: -0.06em;  /* optically centre on the capitals */
  color: var(--link);
  font-weight: 800;
}

/* ── Small screens (apple.com breakpoint) ── */

@media (max-width: 734px) {
  :root { --icon: 112px; --portrait: 132px; }

  h1    { font-size: 40px; line-height: 44px; letter-spacing: 0; }
  h2    { font-size: 32px; line-height: 36px; letter-spacing: 0.004em; margin-bottom: 32px; }
  .lead { font-size: 21px; line-height: 25px; letter-spacing: 0.011em; }
  .services h3 { font-size: 21px; line-height: 25px; letter-spacing: 0.011em; }
  .facts { font-size: 19px; line-height: 23px; letter-spacing: 0.012em; }

  .apps { gap: 28px 32px; margin-top: 56px; max-width: 300px; }
  .services { grid-template-columns: 1fr; max-width: 420px; }
  .why { grid-template-columns: 1fr; gap: 32px; max-width: 420px; }
  .why h3 { font-size: 19px; line-height: 23px; letter-spacing: 0.012em; }
  .section { padding: 56px 16px; }
  .team { gap: 40px; }
  .topbar { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
