/* Fikirfabrika

   Every cover is a film still: the page title stands on its bottom edge the
   way a film's title stands on its first frame, the home page's over the
   agency's paper boats. After the cover the pages stay calm, with the
   services as one poster on the logo's teal and the addresses as rows of the
   same large type.

   Turkish: never text-transform: uppercase. "i" would become "I", not "İ". */

:root {
  --ground: #e8f0f0;
  --surface: #dbe6e7;
  --ink: #0c2b33;
  --muted: #3b5960;
  --dim: #5f7a80;
  --accent: #00737e;
  --sea: #0a9fae;
  --logo: #0097a7;
  --sail: #f2c14e;
  --paper: #fff;
  --scrim: 5 12 14;

  --sans: "Hanken Grotesk", "Avenir Next", "Segoe UI", Arial, sans-serif;

  --step-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
  --step-statement: clamp(1.25rem, .9rem + 1.8vw, 2.25rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  /* 14vw on a phone, where "Referanslarımız" must still fit at 360px. */
  --step-poster: clamp(2.5rem, min(14vw, 4vw + 6.25rem), 10.5rem);

  --margin: clamp(16px, 2.2vw, 32px);
  --page: 1760px;
  --gap: clamp(16px, 2vw, 32px);
  --head-h: 80px;
  --section: clamp(96px, 11vw, 176px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.33, 1, .68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;

  /* Surface colours; dark surfaces swap them below. */
  --fg: var(--ink);
  --fg-soft: var(--muted);
  --focus: var(--accent);
  --button-bg: var(--accent);
  --button-fg: var(--paper);
  --button-hover-bg: var(--ink);
  --button-hover-fg: var(--paper);
}

.cover--dark,
.site-foot {
  --fg: var(--paper);
  --fg-soft: rgb(255 255 255 / .86);
  --focus: var(--sail);
  --button-bg: var(--paper);
  --button-fg: var(--ink);
  --button-hover-bg: var(--sail);
  --button-hover-fg: var(--ink);
  color: var(--fg);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 16px);
  background: var(--ground);
}

html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-body)/1.5 var(--sans);
  letter-spacing: -.005em;
  font-kerning: normal;
  /* An fi ligature swallows the dot of the Turkish i. */
  font-variant-ligatures: no-common-ligatures;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

button,
input,
textarea { font: inherit; letter-spacing: inherit; }

p,
ul,
ol,
dl,
dd,
figure,
address { margin: 0; }

h1,
h2,
h3 { margin: 0; font-weight: 500; }

address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection { background: var(--sail); color: var(--ink); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2 * var(--margin), var(--page));
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 100;
  left: 12px;
  top: -100px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
}

.skip:focus { top: 12px; }

/* ---------- links and buttons ---------- */

.link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: .3em;
  transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease;
}

.link:hover { color: var(--accent); text-decoration-color: currentColor; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .8em 1.4em;
  border: 0;
  border-radius: 0;
  background: var(--button-bg);
  color: var(--button-fg);
  font: 500 1rem/1.1 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, scale var(--t-press) var(--ease-out);
}

.button:hover {
  background: var(--button-hover-bg);
  color: var(--button-hover-fg);
}

.button:active { scale: .97; }

.button--paper {
  --button-bg: var(--paper);
  --button-fg: var(--ink);
  --button-hover-bg: var(--ink);
  --button-hover-fg: var(--paper);
}

.button[disabled] { cursor: progress; opacity: .7; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* The round button that marks a row as something to open. */
.go {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  transition: background-color var(--t-hover) ease, translate var(--t-ui) var(--ease-out);
}

.go svg {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* ---------- header ---------- */

.site-head {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: var(--head-h);
  color: var(--ink);
  transition: background-color .3s ease, color .3s ease;
}

/* site.js keeps the header in view once it can also tell when the cover has
   scrolled away; without it the header stays on the cover. */
.site-head[data-live] { position: fixed; }

.site-head[data-tone="dark"] { color: var(--paper); }

.site-head[data-over-cover="false"] {
  background: var(--ground);
  color: var(--ink);
}

.site-head[data-menu="true"] {
  background: transparent;
  color: var(--ink);
}

.site-head__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand {
  display: block;
  flex: none;
  color: inherit;
}

.logo { display: block; aspect-ratio: 504 / 351; }

.brand__logo { width: auto; height: calc(var(--head-h) - 24px); }

.logo__boat,
.logo__word { fill: currentColor; transition: fill .3s; }

.site-head[data-over-cover="false"] .logo__boat { fill: var(--logo); }
.site-head[data-menu="true"] .logo__boat { fill: currentColor; }

.nav { margin-left: auto; }

.nav__list {
  display: flex;
  gap: clamp(18px, 2.2vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-ui) var(--ease-out);
}

.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after,
.nav__list a.is-section::after { transform: scaleX(1); }

.nav__contact { display: none; }

.burger {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 4px;
  border: 0;
  background: none;
  color: inherit;
  font: 500 1rem/1 var(--sans);
  cursor: pointer;
}

.burger__icon,
.burger__icon::before,
.burger__icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.burger__icon { position: relative; transition: background-color .2s; }

.burger__icon::before,
.burger__icon::after {
  content: "";
  position: absolute;
  left: 0;
  transition: transform var(--t-ui) var(--ease-out);
}

.burger__icon::before { top: -7px; }
.burger__icon::after { top: 7px; }

.burger[aria-expanded="true"] .burger__icon { background: transparent; }
.burger[aria-expanded="true"] .burger__icon::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__icon::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  :root { --head-h: 64px; }

  .js .burger { display: inline-flex; }

  /* The open menu is a field of the logo's teal under the header bar, which
     stays on top with the logo and the close button. */
  .js .nav {
    position: fixed;
    z-index: -1;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    margin: 0;
    padding: calc(var(--head-h) + 24px) var(--margin) 32px;
    overflow-y: auto;
    background: var(--sea);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility 0s .25s;
    --focus: var(--ink);
  }

  .js .nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transition: opacity .25s;
  }

  .js .nav__list { flex-direction: column; gap: 0; }

  .js .nav__list a {
    padding: 2px 0;
    font-size: clamp(2.5rem, 12vw, 4rem);
    line-height: 1.05;
    letter-spacing: -.04em;
  }

  .js .nav__list a::after { display: none; }

  .js .nav__list a[aria-current="page"],
  .js .nav__list a.is-section { color: var(--paper); }

  .js .nav__contact {
    display: grid;
    gap: 8px;
    font-weight: 500;
  }

  .js .nav__contact a { text-decoration: none; }

  /* Without script the menu stays out in the open under the logo. */
  html:not(.js) .site-head { height: auto; }
  html:not(.js) .site-head__in { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .nav { width: 100%; margin: 0; }
  html:not(.js) .nav__list { flex-wrap: wrap; gap: 0 18px; }
  html:not(.js) .brand__logo { height: 44px; }
}

/* ---------- photographs placed by a focus point ----------

   focal.css (written by build.py) gives each cover photograph its proportions
   (--ratio) and its focus point as fractions of the picture (--fx, --fy). The
   picture covers its box and slides so the focus lands mid-box without ever
   showing an edge. */

.focal__media {
  position: absolute;
  inset: 0;
  display: block;
}

.focal__img {
  --w: max(100cqw, 100cqh * var(--ratio, 1.5));
  --h: max(100cqh, 100cqw / var(--ratio, 1.5));
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position:
    clamp(100cqw - var(--w), 50cqw - var(--fx, .5) * var(--w), 0px)
    clamp(100cqh - var(--h), 50cqh - var(--fy, .5) * var(--h), 0px);
}

/* ---------- cover ----------

   The title stands on the bottom edge; the lede and the action sit just
   above it, at its two ends. Heights must match HOME_COVER_SHARE and
   PAGE_COVER_SHARE in build.py. */

.cover {
  position: relative;
  height: clamp(480px, 80svh, 940px);
  overflow: hidden;
  overflow: clip;
  container-type: size;
  background: var(--sea);
  color: var(--fg);
}

.cover--home { height: max(560px, 100svh); }

/* A page without a fitting photograph opens on the logo's teal. */
.cover--field {
  height: clamp(380px, 54svh, 620px);
  --focus: var(--ink);
  --button-bg: var(--ink);
  --button-fg: var(--paper);
  --button-hover-bg: var(--paper);
  --button-hover-fg: var(--ink);
}

.cover--light {
  background: var(--ground);
  --focus: var(--ink);
}

.cover--dark { background: var(--ink); }

/* Under the menu, a dark photograph is shaded and a light one paled, as
   far as its bright spots need for the links to read. */
.cover--dark::after,
.cover--light::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.cover--dark::after {
  background: linear-gradient(rgb(var(--scrim) / .6), rgb(var(--scrim) / .55) var(--head-h), rgb(var(--scrim) / 0) calc(var(--head-h) + 96px)); /* taste-skill-ignore: neutral scrim */
}

.cover--light::after {
  background: linear-gradient(rgb(255 255 255 / .5), rgb(255 255 255 / 0) calc(var(--head-h) + 72px)); /* taste-skill-ignore: neutral veil */
}

/* The shade follows the text, not the photograph: however high the lede
   stands at a given width, it stays covered. It runs past the text column
   to both edges; the cover clips it. */
.cover--dark .cover__body::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -120px -100vw 0;
  background: linear-gradient(to top, rgb(var(--scrim) / .72), rgb(var(--scrim) / .6) calc(100% - 120px), rgb(var(--scrim) / 0)); /* taste-skill-ignore: neutral scrim */
}

/* A light photograph that is busy where the text stands (veil in
   content.json) pales towards the page's ground instead. */
.cover--veil .cover__body::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -200px -100vw 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--ground) 72%, transparent), color-mix(in srgb, var(--ground) 62%, transparent) calc(100% - 200px), transparent); /* taste-skill-ignore: neutral veil */
}

.cover__body {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: clamp(24px, 4.5cqh, 56px);
}

.cover__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 32px;
  /* Clear of the title's accents and ascenders, which rise above its box. */
  margin-bottom: calc(var(--step-poster) * .24);
}

.cover__title + .cover__row { margin: clamp(20px, 3cqh, 32px) 0 0; }

.cover__lede {
  max-width: 38ch;
  font-size: var(--step-lead);
  line-height: 1.35;
}

.cover__title {
  font-size: var(--step-poster);
  line-height: .9;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.cover__title[data-long] { font-size: clamp(2.25rem, 7.5vw, 7rem); }

@media (max-width: 600px) {
  /* Without a photograph, the teal only has to carry the title: the cover
     takes the height of its text, so the page's own content starts on the
     first screen. */
  .cover--field {
    height: auto;
    container-type: normal;
  }

  .cover--field .cover__body {
    position: relative;
    padding-top: calc(var(--head-h) + 88px);
  }

  /* The lede above the title, the action under it, in reach of the thumb. */
  .cover--home .cover__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .cover--home .cover__row { display: contents; }
  .cover--home .cover__lede { order: 1; margin-bottom: 14px; }
  .cover--home .cover__title { order: 2; }

  .cover--home .cover__actions {
    order: 3;
    align-self: stretch;
    margin-top: 22px;
  }

  .cover--home .cover__actions .button { flex: 1; }
}

/* ---------- the home page's opening statement ---------- */

.intro { padding-block: var(--section); }

.intro__grid,
.names__grid,
.opening,
.utts__grid,
.tally__grid,
.story__grid,
.row,
.lines__item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.intro__text {
  grid-column: 7 / span 6;
  grid-row: 1;
  align-self: center;
}

.intro__photo {
  grid-column: 1 / span 5;
  grid-row: 1;
  aspect-ratio: 4 / 5;
}

.intro__title {
  font-size: var(--step-head);
  line-height: .95;
  letter-spacing: -.04em;
}

.intro__lead {
  max-width: 32em;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: var(--step-lead);
  line-height: 1.4;
  letter-spacing: -.01em;
}

.intro__more { margin-top: 18px; }

.facts {
  display: grid;
  gap: clamp(24px, 2.6vw, 36px);
  margin: clamp(48px, 5vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

.facts__title {
  font-size: var(--step-statement);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.facts__text {
  margin-top: 8px;
  color: var(--muted);
}

/* ---------- the services as a poster ----------

   On a wide screen a window beside the words shows the photograph of the
   line under the pointer or the focus, and the first line's until then. */

.poster {
  padding-block: clamp(72px, 8vw, 128px);
  background: var(--sea);
  color: var(--ink);
  --focus: var(--ink);
}

.poster__in { position: relative; }

.poster__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.poster__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 24px;
  padding-block: 4px clamp(14px, 1.6vw, 22px);
  text-decoration: none;
}

.poster__name {
  font-size: var(--step-poster);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.05em;
  transition: color var(--t-hover) ease, translate var(--t-ui) var(--ease-out);
}

.poster__detail {
  grid-row: 2;
  /* Clear of the name's descenders, which hang below its tight line. */
  margin-top: calc(var(--step-poster) * .14);
}

.poster__link .go {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.poster__link:hover .poster__name,
.poster__link:focus-visible .poster__name {
  color: var(--paper);
  translate: .04em 0;
}

.poster__link:hover .go,
.poster__link:focus-visible .go {
  background: var(--paper);
  color: var(--ink);
  translate: 6px 0;
}

.poster__photo { display: none; }

@media (min-width: 1100px) {
  /* Beside the window the names shrink to fit their arrows: --poster-em is
     the width of the longest, "organizasyon", in em at this weight and
     tracking, measured in the browser, with room for the hover shift. */
  .poster__in {
    --window: calc((100cqw - 11 * var(--gap)) / 12 * 4 + 3 * var(--gap));
    --list: calc(100cqw - var(--window) - var(--gap));
    --poster-em: 5.35;
    container-type: inline-size;
  }

  .poster__list { width: var(--list); }

  /* 76px: the arrow and the gap before it. */
  .poster__name { font-size: min(var(--step-poster), (var(--list) - 76px) / var(--poster-em)); }

  /* Every photograph stands in the same window; none takes the pointer, or
     the topmost, though unseen, would claim the hover. */
  .poster__photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: block;
    width: var(--window);
    overflow: hidden;
    overflow: clip;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s var(--ease-out);
  }

  .poster__photo picture,
  .poster__photo img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .poster__photo img {
    object-fit: cover;
    scale: 1.06;
    transition: scale 1.2s var(--ease-out);
  }

  .poster__item:first-child .poster__photo { opacity: 1; }
  .poster__list:is(:hover, :focus-within) .poster__photo { opacity: 0; }
  .poster__list .poster__item:is(:hover, :focus-within) .poster__photo { opacity: 1; }

  .poster__item:first-child .poster__photo img,
  .poster__item:is(:hover, :focus-within) .poster__photo img { scale: 1; }
}

/* ---------- figures, stated quietly ----------

   The figures share one column, as wide as the widest, across the lines. */

.figlines {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 22px 24px;
  margin: 48px 0 0;
}

.figline {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: baseline;
}

.figline dt {
  font-size: var(--step-head);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.figline dd {
  max-width: 30ch;
  font-size: var(--step-lead);
  line-height: 1.25;
}

/* The final number holds the width while the counting one sits over it. */
.count { position: relative; display: inline-block; }
.count__hold { visibility: hidden; }
.count__live { position: absolute; top: 0; right: 0; }

/* ---------- UTTS ---------- */

.utts {
  padding-block: var(--section);
  background: var(--surface);
}

.utts__grid { align-items: start; }

.utts__text { grid-column: 1 / span 6; }

.utts__title,
.tally__title {
  font-size: var(--step-head);
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.utts__lead {
  max-width: 34ch;
  margin-top: 20px;
  font-size: var(--step-lead);
  line-height: 1.35;
}

.utts__points {
  display: grid;
  gap: 8px;
  max-width: 46ch;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.utts__close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
  margin-top: 44px;
}

.utts__badge { width: min(320px, 100%); }

.utts__photo {
  grid-column: 8 / span 5;
  align-self: stretch;
}

/* ---------- client names as one sentence ---------- */

.names { padding-block: clamp(80px, 8vw, 128px); }

.names__grid { align-items: center; }

.names__text {
  grid-column: 1 / span 7;
  font-size: var(--step-statement);
  line-height: 1.16;
  letter-spacing: -.025em;
  text-wrap: balance;
}

/* The lit name's logo, on paper like the logos were made for. */
.names__stage {
  position: relative;
  grid-column: 9 / span 4;
  aspect-ratio: 3 / 2;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--paper);
}

.names__logo {
  position: absolute;
  inset: 0;
  opacity: 0;
  translate: 0 10px;
  transition: opacity .6s var(--ease-out), translate .8s var(--ease-out);
}

.names__logo.is-lit,
html:not(.js) .names__logo:first-child {
  opacity: 1;
  translate: none;
}

.names__logo img {
  width: 100%;
  height: 100%;
}

/* site.js lights one name at a time; without it they all stand in ink. */
.names__name { transition: color .4s ease; }
.js .names__name:not(.is-lit) { color: var(--dim); }

.names__more {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: .16em;
  transition: color var(--t-hover) ease;
}

.names__more:hover { color: var(--accent); }

/* ---------- the addresses in display rows ---------- */

.reach__title {
  padding-block: clamp(48px, 6vw, 88px) clamp(18px, 2vw, 26px);
  background: var(--surface);
  font-size: var(--step-head);
  line-height: 1;
  letter-spacing: -.035em;
}

.reach__title .wrap { display: block; }

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rows__item:nth-child(odd) { background: var(--ground); }
.rows__item:nth-child(even) { background: var(--surface); }

.rows__link {
  display: block;
  text-decoration: none;
}

/* Full-width bands: an outline outside them would fall off the screen. */
.rows__link:focus-visible { outline-offset: -4px; }

.rows__in {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  min-height: clamp(104px, 10.5vw, 152px);
  padding-block: 16px clamp(16px, 1.8vw, 24px);
}

.rows__main {
  font-size: var(--step-head);
  line-height: 1;
  letter-spacing: -.035em;
  transition: color var(--t-hover) ease;
}

.rows__side {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.rows__link:hover .rows__main,
.rows__link:focus-visible .rows__main { color: var(--accent); }

.rows__link:hover .go,
.rows__link:focus-visible .go,
.greet__link:hover .go,
.greet__link:focus-visible .go {
  background: var(--accent);
  translate: 6px 0;
}

/* ---------- the hello that closes a page ---------- */

.greet { background: var(--surface); }

.greet__in {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-block: clamp(56px, 7vw, 104px);
}

.greet__link {
  display: grid;
  gap: 14px;
  text-decoration: none;
}

.greet__word {
  display: inline-flex;
  align-items: center;
  gap: .16em;
  font-size: var(--step-poster);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.05em;
}

.greet__word .go {
  width: .56em;
  height: .56em;
}

.greet__note {
  font-size: var(--step-lead);
  line-height: 1.2;
}

.greet__reach {
  display: grid;
  justify-items: end;
  gap: 6px;
  font-size: var(--step-lead);
  line-height: 1.25;
}

.greet__reach a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
  transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease;
}

.greet__reach a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

/* ---------- client logos ---------- */

.clients { padding-block: var(--section); }

/* A wall of paper tiles, the paper the logos were drawn for. Tiles in a
   short last row widen to close the wall; every logo keeps the size of one
   column (--tile). The half pixel keeps rounding from wrapping a full row. */
.logos {
  --cols: 9;
  --tile: calc((100cqw - (var(--cols) - 1) * 2px) / var(--cols) - .5px);
  container-type: inline-size;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logos__item {
  flex: 1 0 var(--tile);
  overflow: hidden;
  overflow: clip;
  background: var(--paper);
}

.logos img {
  width: var(--tile);
  margin-inline: auto;
  transition: scale var(--t-ui) var(--ease-out);
}

.logos__item:hover img { scale: 1.08; }

/* ---------- running text ---------- */

.reading { padding-block: var(--section); }

.row + .row { margin-top: clamp(64px, 7vw, 112px); }

.row__head { grid-column: 1 / span 5; }

.row__body { grid-column: 7 / span 6; }

.row--opening .row__body { grid-column: 1 / span 8; }

.row--opening .row__body > p {
  font-size: var(--step-lead);
  line-height: 1.4;
  letter-spacing: -.01em;
}

/* A page's opening: its first paragraph large across the page, the rest
   on the column the headed rows below use. */
.opening + .row { margin-top: clamp(64px, 7vw, 112px); }

.opening__lead {
  grid-column: 1 / span 9;
  max-width: 34em;
  font-size: var(--step-lead);
  line-height: 1.4;
  letter-spacing: -.01em;
}

.opening__more {
  grid-column: 7 / span 6;
  margin-top: clamp(32px, 4vw, 56px);
}

.row__title {
  font-size: var(--step-statement);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.prose { max-width: 64ch; }

.prose > * + * { margin-top: 1.1em; }

.words {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .3em;
  padding: 0;
  list-style: none;
  font-size: var(--step-statement);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.words li:not(:last-child)::after { content: ","; }

.steps {
  display: grid;
  gap: 28px;
  padding: 0;
  list-style: none;
}

.step__title {
  font-size: var(--step-lead);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.step p { margin-top: 6px; }

.clauses {
  display: grid;
  gap: .9em;
  padding-left: 1.4em;
}

/* The lines of work on the services page. */
.lines {
  display: grid;
  gap: clamp(56px, 6vw, 96px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The title and its text on the left, the photograph beside them; the last
   row takes up whatever height the photograph needs beyond the text. */
.lines__item {
  grid-template-rows: auto auto 1fr;
  align-items: start;
}

.lines__title {
  grid-column: 1 / span 5;
  font-size: var(--step-head);
  line-height: 1;
  letter-spacing: -.035em;
}

.lines__text {
  grid-column: 1 / span 5;
  max-width: 34ch;
  margin-top: 24px;
  font-size: var(--step-lead);
  line-height: 1.35;
}

.lines__photo {
  grid-column: 7 / span 6;
  grid-row: 1 / -1;
  aspect-ratio: 3 / 2;
}

/* Every other line turns, its photograph to the left. */
@media (min-width: 901px) {
  .lines__item:nth-child(even) .lines__title,
  .lines__item:nth-child(even) .lines__text { grid-column: 8 / span 5; }

  .lines__item:nth-child(even) .lines__photo { grid-column: 1 / span 6; }
}

/* ---------- about ---------- */

.story { padding-block: var(--section) 0; }

.story__grid { row-gap: clamp(48px, 5vw, 80px); }

.story__statement {
  grid-column: 1 / span 9;
  font-size: var(--step-statement);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.story__text { grid-column: 6 / span 6; }

.gallery { padding-block: var(--section); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.gallery__wide { grid-column: 1 / -1; }

.gallery img { width: 100%; }

.gallery__half { aspect-ratio: 1; }

.tally {
  padding-block: clamp(80px, 8vw, 128px);
  background: var(--surface);
}

.tally__title { grid-column: 1 / span 5; }

.tally .figlines {
  grid-column: 7 / span 6;
  margin-top: 0;
}

/* ---------- photographs in frames ---------- */

/* Frames of set proportions that their photograph covers. */
.intro__photo picture,
.intro__photo img,
.utts__photo picture,
.utts__photo img,
.lines__photo picture,
.lines__photo img,
.gallery__half picture,
.gallery__half img {
  display: block;
  width: 100%;
  height: 100%;
}

.intro__photo img,
.utts__photo img,
.lines__photo img,
.gallery__half img { object-fit: cover; }

.intro__photo img { object-position: 48% 38%; }
.utts__photo img { object-position: 30% 42%; }

/* Photographs drift a little inside their frames as the page scrolls. */
.drift { overflow: hidden; overflow: clip; }

/* ---------- footer ---------- */

.site-foot {
  padding: clamp(56px, 7vw, 96px) 0 28px;
  background: var(--ink);
  color: var(--fg-soft);
  font-size: .9375rem;
}

.site-foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
}

.site-foot__logo { width: 124px; height: auto; }
.site-foot .logo__boat { fill: var(--logo); }
.site-foot .logo__word { fill: var(--paper); }

.site-foot__brand p { margin-top: 16px; }

.site-foot__title {
  margin-bottom: .9em;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 700;
}

.site-foot__office + .site-foot__office { margin-top: 18px; }

.site-foot__name { color: var(--paper); font-weight: 650; }

.site-foot__list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.site-foot a { text-decoration: none; }

.site-foot a:hover {
  color: var(--sail);
  text-decoration: underline;
  text-underline-offset: .3em;
}

.site-foot__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / .14); /* taste-skill-ignore: the footer the owner kept */
  font-size: .875rem;
}

/* ---------- smaller screens ---------- */

@media (max-width: 1279px) {
  .logos { --cols: 6; }
}

@media (max-width: 1100px) {
  .site-foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .intro__text,
  .intro__photo,
  .names__text,
  .names__stage,
  .opening__lead,
  .opening__more,
  .utts__text,
  .row__head,
  .row__body,
  .row--opening .row__body,
  .lines__title,
  .lines__text,
  .story__statement,
  .story__text,
  .tally__title,
  .tally .figlines { grid-column: 1 / -1; }

  .intro__photo {
    grid-row: 2;
    aspect-ratio: 1;
    margin-top: 56px;
  }

  .names__stage {
    width: min(100%, 360px);
    margin-top: 40px;
  }

  .logos { --cols: 4; }

  .utts__photo {
    grid-column: 1 / -1;
    margin-top: 56px;
  }

  .row__body { margin-top: 16px; }

  .lines__item { grid-template-rows: none; }

  .lines__photo {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 28px;
  }

  .tally .figlines { margin-top: 40px; }
}

@media (max-width: 760px) {
  .gallery__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  /* At this size the dimmed names need more contrast. */
  .names__text { --dim: #4f6a70; }

  /* The words need the whole width of a phone; each line is plainly a link. */
  .poster__link { grid-template-columns: minmax(0, 1fr); }
  .poster__link .go { display: none; }

  .rows__in {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-block: 22px 18px;
  }

  .rows__side { justify-content: space-between; }

  .greet__in {
    flex-direction: column;
    align-items: flex-start;
  }

  .greet__reach { justify-items: start; }

  .logos { --cols: 2; }

  .site-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Addresses and the e-mail address need the whole width of a phone. */
  .site-foot__offices,
  .site-foot__contact { grid-column: 1 / -1; }
}

/* ---------- motion ----------

   Hidden states apply only under html.js (set before first paint, taken
   back if site.js never arrives) and only without reduced motion, so the
   content never depends on the script. */

@keyframes rise { from { opacity: 0; translate: 0 22px; } }
@keyframes settle { from { scale: 1.06; } }

@media (prefers-reduced-motion: no-preference) {
  .cover__title { animation: rise .9s var(--ease-out) .1s both; }
  .cover__row > * { animation: rise .9s var(--ease-out) .35s both; }
  .cover__row > * + * { animation-delay: .45s; }
  .cover .focal__img { animation: settle 2.4s var(--ease-soft) both; }

  .js [data-reveal] {
    opacity: 0;
    translate: 0 26px;
    transition: opacity .7s var(--ease-out), translate .9s var(--ease-out);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    translate: none;
  }

  .js [data-reveal="1"] { transition-delay: 90ms; }
  .js [data-reveal="2"] { transition-delay: 180ms; }
  .js [data-reveal="3"] { transition-delay: 270ms; }
  .js [data-reveal="4"] { transition-delay: 360ms; }
  .js [data-reveal="5"] { transition-delay: 450ms; }
}

/* The signature: as the home cover scrolls away, the title settles a few
   percent and the photograph drifts down behind it. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cover--home { view-timeline: --cover block; }

    .cover--home .cover__title {
      transform-origin: 0 100%;
      animation: rise .9s var(--ease-out) .1s both, title-settle linear both;
      animation-timeline: auto, --cover;
      animation-range: normal, exit 0% exit 100%;
    }

    .cover .focal__media {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }

    .drift img {
      scale: 1.08;
      animation: pan linear both;
      animation-timeline: view();
    }
  }
}

@keyframes title-settle { to { scale: .92; } }
@keyframes drift { to { translate: 0 10%; } }
@keyframes pan { from { translate: 0 -3.5%; } to { translate: 0 3.5%; } }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-head,
  .greet { display: none; }

  .cover { height: auto; background: none; color: var(--ink); container-type: normal; }
  .cover::after,
  .cover__body::before,
  .focal__media { display: none; }
  .cover__body { position: static; padding: 24px 0; }

  .js [data-reveal] { opacity: 1; translate: none; }
}
