/* ============================================================
   Ipek Onuk website mockup
   Identity tokens carry over from the brand guide unchanged.

   Layout note: several sections put their hairline rules on a
   full-bleed wrapper and re-rail the content inside, so the rules
   run edge to edge while the text stays on the measure. That is
   what stops the page reading as a stack of centred boxes.
   ============================================================ */

:root {
  /* ── Brand palette ─────────────────────────────────────────
     Three source colours. Every other colour token below is
     derived from these, so re-tinting the site is a three-line
     edit here.
     --------------------------------------------------------- */
  --chartreuse: #dde87f;
  --navy: #17114e;
  --off-white: #f4f5f7;

  /* Surfaces */
  --ivory: #f4f5f7;
  --paper: #eceef2;
  --tan: #dfe2ea;

  /* Accents, derived from the two brand colours */
  --mist: rgba(23, 17, 78, 0.18);
  --sea: #dde87f;
  --peri: rgba(23, 17, 78, 0.4);
  --powder: #dde87f;
  --blue: #17114e;
  --coral: #dde87f;
  --glint: #dde87f;

  /* Ink */
  --ink: #17114e;
  --espresso: #17114e;
  --steel: #5e5a84;

  /* Functional only. Deliberately outside the brand palette so
     form errors stay legible; nothing decorative uses it. */
  --alert: #b3261e;

  --muted: rgba(23, 17, 78, 0.72);
  --line: rgba(23, 17, 78, 0.14);
  --line-strong: rgba(23, 17, 78, 0.24);
  /* Inputs are underline-only, so this hairline is the field's sole
     visual boundary and has to clear 3:1, unlike decorative rules. */
  --field-line: rgba(23, 17, 78, 0.55);
  --on-dark: rgba(244, 245, 247, 0.72);
  --line-dark: rgba(244, 245, 247, 0.16);
  /* Link underlines on the dark panels carry the affordance, so they
     need 3:1; the decorative list hairlines above stay soft. */
  --link-line-dark: rgba(244, 245, 247, 0.42);

  /* Type */
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --rail: 1280px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --header-h: 74px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
}

::selection {
  color: var(--ivory);
  background: var(--blue);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

/* The form and its sent state both set `display`, which would otherwise beat
   the UA rule for [hidden] and leave the two panels stacked on top of each other. */
[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.8rem 1.1rem;
  color: var(--ivory);
  background: var(--blue);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0.75rem;
}

/* ── Layout primitives ───────────────────────────────────── */

.rail {
  width: 100%;
  max-width: var(--rail);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.hero,
.stakes,
.services,
.proof,
.work,
.process,
.enquiry {
  padding-block: var(--section);
}

/* ── Type scale ──────────────────────────────────────────── */

h1,
h2,
h3,
blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 14ch;
  margin-top: 1.2rem;
  font-size: clamp(2.9rem, 5.4vw, 4.6rem);
  line-height: 0.98;
  /* Stops the last line falling to a single orphaned word. */
  text-wrap: balance;
}

h2 {
  max-width: 20ch;
  margin-top: 0.9rem;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.06;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.18;
}

p,
li {
  margin: 0;
  font-size: 1rem;
  line-height: 1.68;
}

.lede {
  max-width: 56ch;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.35vw, 1.24rem);
  line-height: 1.6;
}

.eyebrow,
.index,
.field-label,
nav a,
.button,
.trustbar span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
}

.index {
  color: var(--steel);
}

/* Measures on these wrappers are in px: `ch` here would resolve against the
   sans body font, not the much larger serif headings they contain. */
.section-head {
  max-width: 660px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head > p:not(.eyebrow) {
  max-width: 50ch;
  margin-top: 1.2rem;
  color: var(--muted);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  max-width: none;
}

.section-head--split > p {
  margin-top: 0;
}

/* ── Logo (locked to the brand guide) ────────────────────── */

.logo {
  display: block;
  width: max-content;
  text-decoration: none;
}

.logo__ipek {
  display: flex;
  align-items: flex-end;
  color: var(--blue);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.85rem;
  letter-spacing: -0.055em;
  line-height: 0.72;
  text-transform: uppercase;
  transform: skewX(-3deg) scaleX(1.02);
  transform-origin: left bottom;
}

.logo__ipek > span {
  display: inline-block;
}

.logo .letter-i {
  width: 0.24em;
  margin-right: 0.04em;
  transform: scaleX(0.9);
}

.logo__onuk {
  display: block;
  margin-top: 0.04em;
  margin-left: 1.55rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.72;
  transform: skewX(-8deg);
}

/* ── Header ──────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0.9rem var(--gutter);
  background: rgba(244, 245, 247, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(1.3);
  transition: min-height 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  min-height: 62px;
  background: rgba(244, 245, 247, 0.94);
  border-bottom-color: var(--line);
}

.site-header .logo {
  transition: transform 0.3s var(--ease);
  transform-origin: left center;
}

.site-header.is-scrolled .logo {
  transform: scale(0.88);
}

.site-nav {
  display: flex;
  gap: clamp(1.1rem, 2.4vw, 2.2rem);
}

.site-nav a {
  position: relative;
  padding-block: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--blue);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ── Buttons ─────────────────────────────────────────────── */

.button,
.enquiry__form button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.32s var(--ease), color 0.32s var(--ease),
    transform 0.32s var(--ease), border-color 0.32s var(--ease),
    box-shadow 0.32s var(--ease);
}

.button--sm {
  min-height: 42px;
  padding: 0.6rem 1.35rem;
}

.button--primary {
  color: var(--ivory);
  background: var(--blue);
  box-shadow: 0 1px 2px rgba(23, 17, 78, 0.14);
}

/* Chartreuse stays in play as a soft halo rather than a hard edge. */
.button--primary:hover {
  background: #241c72;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px rgba(221, 232, 127, 0.55),
    0 8px 22px rgba(23, 17, 78, 0.16);
}

.button--primary:active {
  transform: translateY(0);
}

/* Underline the text rather than the box: the button keeps its 52px tap target,
   but the rule stays tight to the words instead of floating at the box edge. */
.button--ghost {
  color: var(--blue);
  background: transparent;
  border: 0;
  padding-inline: 0.2rem;
  margin-left: 0.6rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.62em;
  text-decoration-color: rgba(23, 17, 78, 0.32);
  transition: text-decoration-color 0.24s var(--ease);
}

.button--ghost:hover {
  text-decoration-color: var(--blue);
}

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

/* Shared figure treatment. Captions are part of the editorial voice,
   so they get the same small-caps as the eyebrows, not browser italic. */
.hero__figure,
.work__strip figure {
  position: relative;
  margin: 0;
}

.hero__figure img,
.work__strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Any cover crop comes off the bottom of the frame rather than the
     top, so heads stay in shot whatever the container does. */
  object-position: 50% 22%;
  background: var(--paper);
}

.hero__figure figcaption,
.work__strip figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.75rem;
  margin-top: 0.85rem;
  color: var(--steel);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.work__strip figcaption span {
  color: var(--blue);
}

/* ── Hero: type left, picture right ──────────────────────── */

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.74fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__figure {
  align-self: stretch;
  min-height: clamp(26rem, 46vw, 36rem);
  display: flex;
  flex-direction: column;
}

.hero__figure img {
  flex: 1;
  min-height: 0;
}


.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  background:
    radial-gradient(74% 118% at 92% 4%, rgba(221, 232, 127, 0.55), transparent 62%),
    radial-gradient(56% 88% at 0% 100%, rgba(23, 17, 78, 0.07), transparent 60%),
    var(--ivory);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 2.4rem;
}

/* ── Trust bar ───────────────────────────────────────────── */

.trustbar {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.trustbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  justify-content: space-between;
  padding-block: 1.15rem;
}

.trustbar span {
  color: var(--steel);
}

/* ── Stakes: full-bleed ledger rows on the dark anchor ───── */

.stakes {
  position: relative;
  color: var(--ivory);
  background: var(--espresso);
}

.stakes::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.stakes > * {
  position: relative;
  z-index: 1;
}

.stakes .eyebrow {
  color: var(--powder);
}

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

.stakes__list li {
  border-top: 1px solid var(--line-dark);
  transition: background 0.35s var(--ease);
}

.stakes__list li:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.stakes__list li:hover {
  background: rgba(244, 245, 247, 0.035);
}

.stakes__row {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding-block: clamp(1.6rem, 3.2vw, 2.6rem);
}

.stakes__cost {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-style: italic;
  line-height: 1.1;
}

.stakes__detail {
  max-width: 46ch;
  color: var(--on-dark);
  font-size: 1.02rem;
  line-height: 1.6;
}

.stakes__close {
  max-width: 44ch;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.46;
}

/* ── Services: numbered full-bleed rows ──────────────────── */

.services {
  background: var(--ivory);
}

.service-list article {
  position: relative;
  border-top: 1px solid var(--line);
  transition: background 0.35s var(--ease);
}

.service-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.service-list article::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.service-list article:hover::before {
  transform: scaleX(1);
}

.service-list article:hover {
  background: rgba(221, 232, 127, 0.28);
}

.service-list__row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 0.78fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 2.6vw, 2.4rem);
  align-items: start;
  padding-block: clamp(1.8rem, 3.4vw, 2.8rem);
}

.service-list__num {
  padding-top: 0.45rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.service-list__label h3 {
  max-width: 18ch;
  text-wrap: balance;
}

.service-list__body p {
  max-width: 54ch;
  color: var(--muted);
}

.deliverable {
  margin-top: 1.2rem;
  color: var(--ink) !important;
}

.deliverable span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Proof: one large quote, three quiet ones beside it ──── */

.proof {
  background:
    linear-gradient(160deg, rgba(221, 232, 127, 0.5), rgba(23, 17, 78, 0.06)),
    var(--ivory);
}

.proof__lead {
  max-width: 15ch;
  margin-top: 1.2rem;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-style: italic;
  line-height: 1;
  /* Hang the opening quote in the margin so the first word stays on the measure. */
  text-indent: -0.42em;
}

.proof__lead::before {
  content: "\201C";
}

.proof__lead::after {
  content: "\201D";
}

.proof__more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(23, 17, 78, 0.18);
}

.proof__more figure {
  margin: 0;
}

.proof__more blockquote {
  font-size: clamp(1.15rem, 1.75vw, 1.4rem);
  font-style: italic;
  line-height: 1.3;
}

.proof__more blockquote::before {
  content: "\201C";
}

.proof__more blockquote::after {
  content: "\201D";
}

.proof__more figcaption {
  margin-top: 0.9rem;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Work: staggered, ruled, unfilled ────────────────────── */

.work {
  background: var(--ivory);
}

.work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

.work-list article {
  padding-top: 1.3rem;
  border-top: 3px solid var(--mist);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.work-list article:nth-child(2) {
  border-top-color: var(--sea);
  margin-top: clamp(1.5rem, 4vw, 4rem);
}

.work-list article:nth-child(3) {
  border-top-color: var(--peri);
  margin-top: clamp(3rem, 8vw, 8rem);
}

.work-list article:hover {
  border-top-color: var(--blue);
  transform: translateY(-4px);
}

.work-list h3 {
  margin-block: 0.8rem;
}

.work-list article > p:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Portfolio index ─────────────────────────────────────── */

.portfolio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 3.5vw, 3rem);
}

.portfolio__item {
  position: relative;
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding: 1.25rem 2rem 1.6rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.3s var(--ease);
}

.portfolio__item::after {
  content: "\2192";
  position: absolute;
  top: 1.15rem;
  right: 0.3rem;
  color: var(--blue);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.portfolio__item:hover,
.portfolio__item:focus-visible {
  border-top-color: var(--blue);
}

.portfolio__item:hover::after,
.portfolio__item:focus-visible::after {
  opacity: 1;
  transform: none;
}

.portfolio__item h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
}

.portfolio__year {
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

/* The last tile is the portfolio itself, not a client project. A heavier
   navy rule and a permanent arrow separate it from the work above without
   inventing a new component. */
.portfolio__item--more {
  border-top: 2px solid var(--blue);
}

.portfolio__item--more::after {
  opacity: 1;
  transform: none;
}

.portfolio__item--more:hover::after,
.portfolio__item--more:focus-visible::after {
  transform: translateX(4px);
}

/* Three pictures ahead of the index, so the section shows the work
   before it lists it. Portrait crops keep the row even. */
.work__strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.work__strip img {
  aspect-ratio: 39 / 50;
}

/* ── Work page: projects and galleries ───────────────────── */

.portfolio--jump {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.project {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line);
  background: var(--ivory);
}

.project:nth-of-type(even) {
  background: var(--paper);
}

.project__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.project__head h2 {
  margin-top: 0.6rem;
}

.project__note {
  max-width: 60ch;
  color: var(--muted);
}

.project__rights,
.project__empty {
  max-width: 60ch;
  margin-top: 1.6rem;
  color: var(--steel);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Multi-column keeps tech packs and photography on their own aspect ratios
   without forcing every image into a uniform crop. */
.gallery {
  columns: 2;
  column-gap: clamp(1rem, 2vw, 1.5rem);
}

.shot {
  display: block;
  width: 100%;
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  break-inside: avoid;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(23, 17, 78, 0.04);
  transition: opacity 0.3s var(--ease);
}

.shot:hover img {
  opacity: 0.86;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(23, 17, 78, 0.95);
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: clamp(0.5rem, 2vw, 1.5rem);
  right: clamp(0.5rem, 2vw, 1.5rem);
  width: 48px;
  height: 48px;
  color: var(--ivory);
  background: transparent;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* ── Compliance: fabriq ──────────────────────────────────── */

.fabriq-mark {
  width: clamp(140px, 17vw, 200px);
  height: auto;
  margin: 1.5rem 0 1.2rem;
}

.fabriq-tagline {
  max-width: 44ch;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.4;
}

.pressure {
  position: relative;
  padding-block: var(--section);
  color: var(--ivory);
  background: var(--espresso);
}

.pressure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pressure > * {
  position: relative;
  z-index: 1;
}

.pressure .eyebrow {
  color: var(--powder);
}

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

.pressure__list li {
  border-top: 1px solid var(--line-dark);
  transition: background 0.35s var(--ease);
}

.pressure__list li:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.pressure__list li:hover {
  background: rgba(244, 245, 247, 0.035);
}

.pressure__row {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding-block: clamp(1.9rem, 3.6vw, 2.9rem);
  padding-right: 3rem;
}

.pressure__quote {
  max-width: 26ch;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-style: italic;
  line-height: 1.15;
}

.pressure__answer {
  max-width: 62ch;
  color: var(--on-dark);
}

.pressure__arrow {
  position: absolute;
  top: clamp(1.9rem, 3.6vw, 2.9rem);
  right: var(--gutter);
  color: var(--powder);
  font-size: 1.1rem;
  transition: transform 0.32s var(--ease);
}

.pressure__list li:hover .pressure__arrow {
  transform: translateX(7px);
}

.capability {
  padding-block: var(--section);
  background: var(--ivory);
}

.capability__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.8rem, 3.5vw, 3rem) clamp(1.5rem, 3.5vw, 3rem);
}

.capability__grid article {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}

.capability__grid article:hover {
  border-top-color: var(--blue);
}

.capability__grid h3 {
  margin-bottom: 0.7rem;
}

.capability__grid p {
  max-width: 40ch;
  color: var(--muted);
}

/* ── Process: one continuous line through the numerals ───── */

.process {
  background: var(--paper);
}

.process__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.process__list::before {
  content: "";
  position: absolute;
  top: 0.85em;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
}

.process__list li {
  position: relative;
}

.process__num {
  position: relative;
  display: inline-block;
  padding-right: 0.7rem;
  color: var(--blue);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1;
}

.process__list h3 {
  margin-block: 1.1rem 0.7rem;
}

.process__list p {
  max-width: 42ch;
  color: var(--muted);
}

/* ── Enquiry: unboxed form, underlined fields ────────────── */

.enquiry {
  background: linear-gradient(180deg, var(--paper), rgba(221, 232, 127, 0.45));
}

.enquiry__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.enquiry__intro {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.enquiry__intro > p:not(.eyebrow) {
  max-width: 38ch;
  margin-top: 1.2rem;
  color: var(--muted);
}

.enquiry__reassure {
  display: grid;
  gap: 0.7rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.enquiry__reassure li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.enquiry__reassure li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.7rem;
  height: 1px;
  background: var(--blue);
}

.enquiry__form,
.enquiry__sent {
  display: grid;
  gap: 1.8rem;
}

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

label {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.field-label {
  color: var(--espresso);
}

.field-label em {
  color: var(--steel);
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.12em;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--field-line);
  border-radius: 0;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

select {
  appearance: none;
  padding-right: 1.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%235e5a84' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  border-bottom-color: var(--blue);
  box-shadow: 0 1px 0 0 var(--blue);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(23, 17, 78, 0.58);
}

textarea {
  min-height: 120px;
  padding-top: 0.9rem;
  resize: vertical;
}

.error {
  color: var(--alert);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.error:empty {
  display: none;
}

/* Honeypot. Kept off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Shown only when a submission fails to reach the endpoint. */
.form-error {
  margin: 0 0 1.1rem;
  max-width: 46ch;
  color: var(--alert);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-error:empty {
  display: none;
}

[aria-invalid="true"] {
  border-bottom-color: var(--alert);
}

.form-note {
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.enquiry__form button {
  justify-self: start;
}

.enquiry__sent {
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--blue);
}

.enquiry__sent h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.enquiry__sent p:not(.eyebrow) {
  max-width: 46ch;
  color: var(--muted);
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  padding-block: clamp(3rem, 6vw, 5rem);
  color: var(--ivory);
  background: var(--espresso);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.logo--footer .logo__ipek {
  color: var(--powder);
}

.logo--footer .logo__onuk {
  color: var(--ivory);
}

.site-footer p {
  margin-top: 1.2rem;
  max-width: 34ch;
  color: var(--on-dark);
  font-size: 0.95rem;
}

.site-footer .eyebrow {
  color: var(--powder);
}

.site-footer__cols {
  display: grid;
  /* Weighted to the content, not equal thirds. The email is roughly
     twice the width of the other two, so equal columns made it spill
     into "Based" while the other two sat on unused space. */
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.site-footer__cols p:not(.eyebrow) {
  margin-top: 0.8rem;
}

.site-footer__cols a {
  display: inline-block;
  margin-top: 0.8rem;
  /* An email address has no natural break point, so without this it
     overflows its column rather than wrapping. Belt and braces: the
     columns above already give it room at every width. */
  overflow-wrap: anywhere;
  color: var(--ivory);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--link-line-dark);
  transition: border-color 0.24s var(--ease);
}

.site-footer__cols a:hover {
  border-bottom-color: var(--glint);
}

/* ── Scroll reveal ───────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] {
  transition-delay: 0.09s;
}

[data-reveal-delay="2"] {
  transition-delay: 0.18s;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 940px) {
  .enquiry__inner,
  .section-head--split,
  .site-footer__inner,
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__figure {
    display: block;
    min-height: 0;
  }

  .hero__figure img {
    aspect-ratio: 4 / 5;
    height: auto;
  }

  .stakes__row,
  .service-list__row {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .service-list__num {
    padding-top: 0;
  }

  .proof__more,
  .work-list,
  .process__list,
  .capability__grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

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

  .project__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gallery {
    columns: 1;
  }

  .work-list article:nth-child(2),
  .work-list article:nth-child(3) {
    margin-top: 0;
  }

  /* The connecting rule only reads horizontally. */
  .process__list::before {
    display: none;
  }

  .process__num {
    padding-right: 0;
  }

  .enquiry__intro {
    position: static;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    z-index: 40;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: rgba(244, 245, 247, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease),
      visibility 0.26s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    padding-block: 1rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.8rem;
  }

  .site-nav a::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .form-grid,
  .portfolio {
    grid-template-columns: 1fr;
  }

  .work__strip {
    grid-template-columns: 1fr;
  }

  .work__strip figure:nth-child(n + 2) {
    display: none;
  }

  .site-footer__cols {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
  }

  .button--ghost {
    margin-left: 0;
  }

  .trustbar__inner {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
