/* ==========================================================================
   Web Design page (page-templates/web-design.php)
   Reuses main.css for sections, buttons, eyebrows, reveals, the product
   tile and the contact panel; everything here is specific to this page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared section head — title left, lead right on wide screens
   -------------------------------------------------------------------------- */
.wd-head {
  display: grid;
  gap: 1.75rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.wd-head .section-title { max-width: 13em; }
.wd-head__lead { max-width: 27rem; }
@media (min-width: 1180px) {
  .wd-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    column-gap: 3rem;
  }
  .wd-head__lead { justify-self: end; }
}


/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.wd-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-offset) + clamp(3rem, 9vw, 6.5rem));
  padding-bottom: clamp(4.5rem, 10vw, 8rem);
}
.wd-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 60% at 8% 12%, color-mix(in srgb, var(--teal-deep) 75%, transparent), transparent 70%),
    radial-gradient(45% 55% at 92% 30%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
    radial-gradient(40% 40% at 70% 100%, color-mix(in srgb, var(--ember) 10%, transparent), transparent 70%);
}
.wd-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 75%);
  opacity: 0.55;
}
.wd-hero .grain { opacity: 0.05; }

.wd-hero__inner {
  display: grid;
  gap: clamp(3.5rem, 8vw, 4.5rem);
}
.wd-hero__title {
  max-width: 10em;
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.3rem + 5.4vw, 6.25rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.wd-hero__lead { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.wd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}
.wd-hero__visual {
  /* room for the phone hanging off the lower-left corner */
  padding: 0 0 12% 9%;
}

@media (max-width: 479px) {
  .wd-hero__actions .btn { flex: 1 1 100%; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .wd-hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    column-gap: clamp(3rem, 6vw, 6rem);
  }
  .wd-hero__visual { padding: 0 0 10% 10%; }
}


/* --------------------------------------------------------------------------
   Device mockups — browser window + optional phone
   -------------------------------------------------------------------------- */
.device {
  position: relative;
  margin: 0;
}
.device__browser {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: clamp(10px, 1.2vw, 14px);
  background: var(--ink-800);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.06) inset,
    0 50px 100px -45px rgb(0 0 0 / 0.85),
    0 18px 36px -24px rgb(0 0 0 / 0.6);
}
.device__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: clamp(1.6rem, 2.4vw, 2.1rem);
  padding-inline: 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--ink-850);
}
.device__dots { display: flex; flex: none; gap: 5px; }
.device__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-600);
}
.device__url {
  flex: 0 1 15rem;
  min-width: 0;
  margin-inline: auto;
  padding: 0.2rem 0.75rem;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--ink-900);
  color: var(--text-faint);
  font-size: 0.6875rem;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.device__url:empty { visibility: hidden; }
.device__screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 900;
  object-fit: cover;
  object-position: top;
  background: var(--ink-900);
}
/* Unlaunched client sites: a branded panel instead of a screenshot. */
.device__screen--soon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.2vw, 0.85rem);
  padding: 1.5rem;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background:
    radial-gradient(70% 90% at 15% 0%, color-mix(in srgb, var(--teal-deep) 80%, transparent), transparent 70%),
    radial-gradient(60% 70% at 100% 100%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%),
    var(--ink-900);
}
.device__screen--soon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 20%, transparent 75%);
}
.device__soon-mark {
  width: clamp(1.5rem, 3vw, 2.25rem);
  height: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--gold);
}
.device__soon-mark svg { display: block; width: 100%; height: 100%; }
.device__soon-label {
  color: var(--gold-light);
  font-size: clamp(0.5625rem, 0.9vw, 0.75rem);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.device__soon-name {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.device__phone {
  position: absolute;
  left: -9%;
  bottom: -12%;
  width: 24%;
  min-width: 4.75rem;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border: clamp(3px, 0.45vw, 6px) solid var(--ink-950);
  border-radius: clamp(0.9rem, 2vw, 1.75rem);
  outline: 1px solid var(--line-strong);
  background: var(--ink-900);
  box-shadow: 0 30px 60px -22px rgb(0 0 0 / 0.75);
}
.device__phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

@media (hover: hover) and (pointer: fine) {
  .device__browser,
  .device__phone { transition: translate var(--dur-4) var(--ease-out); }
  .case:hover .device__browser { translate: 0 -6px; }
  .case:hover .device__phone { translate: 0 -12px; }
}


/* --------------------------------------------------------------------------
   01 Capabilities (ivory slab, same treatment as the homepage ventures)
   -------------------------------------------------------------------------- */
.wd-slab {
  margin-inline: clamp(0.5rem, 1.25vw, 1.25rem);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-xl);
}
.wd-slab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 45% at 100% 0%, color-mix(in srgb, var(--gold-light) 34%, transparent), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, color-mix(in srgb, var(--ivory-200) 60%, transparent), transparent 70%);
  pointer-events: none;
}

.wd-caps__grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cap-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border: 1px solid var(--line-ink);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--ivory-50) 40%, white),
    color-mix(in srgb, var(--ivory-50) 75%, white));
  box-shadow:
    0 1px 0 color-mix(in srgb, white 80%, transparent) inset,
    0 1px 2px color-mix(in srgb, var(--ink-950) 4%, transparent),
    0 24px 48px -32px color-mix(in srgb, var(--ink-950) 22%, transparent);
  transition:
    translate var(--dur-3) var(--ease-out),
    box-shadow var(--dur-3) var(--ease-out),
    border-color var(--dur-3) var(--ease-out);
}
.cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my),
    color-mix(in srgb, var(--gold) 16%, transparent), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out);
}
.cap-card__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--line-ink);
  border-radius: 14px;
  background: var(--ivory-50);
  color: var(--gold-deep);
  transition: border-color var(--dur-3) var(--ease-out), background-color var(--dur-3) var(--ease-out);
}
.cap-card__icon svg { width: 1.6rem; height: 1.6rem; }
.cap-card__title {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.cap-card__text {
  margin-top: 0.7rem;
  color: var(--text-ink-muted);
}
.cap-card__seen {
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--text-ink-muted);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.cap-card__seen span {
  margin-right: 0.35rem;
  color: var(--gold-deep);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
  .cap-card:hover {
    translate: 0 -4px;
    border-color: var(--line-ink-strong);
    box-shadow:
      0 1px 0 color-mix(in srgb, white 80%, transparent) inset,
      0 2px 4px color-mix(in srgb, var(--ink-950) 4%, transparent),
      0 40px 70px -36px color-mix(in srgb, var(--ink-950) 32%, transparent);
  }
  .cap-card:hover::before { opacity: 1; }
  .cap-card:hover .cap-card__icon {
    border-color: color-mix(in srgb, var(--gold-deep) 45%, transparent);
    background-color: color-mix(in srgb, var(--gold-light) 30%, var(--ivory-50));
  }
}
@media (min-width: 640px) {
  .wd-caps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .wd-caps__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .cap-card { min-height: 21rem; }
}


/* Hosting — the dark panel that closes the ivory capabilities slab. */
.hosting {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: clamp(2rem, 5vw, 2.5rem);
  margin-top: clamp(1rem, 2vw, 1.25rem);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink-900);
  color: var(--text);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.06) inset,
    0 40px 80px -40px color-mix(in srgb, var(--ink-950) 70%, transparent);
}
.hosting::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, var(--teal) 30%, transparent), transparent 62%),
    radial-gradient(55% 80% at 0% 100%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 62%);
}
.hosting::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  border-radius: inherit;
  pointer-events: none;
}
.hosting__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold-light);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.hosting__kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 70%, transparent);
}
.hosting__title {
  max-width: 12em;
  margin-top: 1.25rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.hosting .serif-accent { background-image: var(--gradient-brand); }
.hosting__text {
  max-width: 32rem;
  margin-top: 1.25rem;
  color: var(--text-muted);
}
.hosting__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.hosting__points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.2;
}
.hosting__points li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.hosting__stat {
  display: grid;
  align-content: center;
  gap: 0.6rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.025);
}
.hosting__figure {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 2rem + 6vw, 6.5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hosting__figure span { font-size: 0.55em; letter-spacing: -0.02em; }
.hosting__label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
  color: var(--text);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.hosting__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4fc28a;
  box-shadow: 0 0 0 3px rgb(79 194 138 / 0.18);
}
.hosting__caption {
  max-width: 18rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
@media (min-width: 1024px) {
  .hosting {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: center;
    column-gap: clamp(3rem, 6vw, 5rem);
  }
}


/* --------------------------------------------------------------------------
   02 Selected work — case studies
   -------------------------------------------------------------------------- */
.cases { border-top: 1px solid var(--line); }
.case {
  display: grid;
  gap: clamp(3rem, 8vw, 3.5rem);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--line);
}
.case__media { padding: 0 0 12% 9%; }

.case__top {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.case__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.case__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.case__status--live { color: var(--text); }
.case__status--live::before {
  background: #4fc28a;
  box-shadow: 0 0 0 3px rgb(79 194 138 / 0.18);
}
.case__index {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1;
}
.case__type {
  margin-top: 1.5rem;
  color: var(--gold-light);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.case__client {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.case__meta {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.case__summary {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--text);
  font-size: var(--fs-lg);
  line-height: 1.5;
}
.case__points {
  display: grid;
  gap: 0.7rem;
  max-width: 34rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.case__points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-wrap: pretty;
}
.case__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.85rem;
  height: 1px;
  background: var(--gold);
}
.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.case__tags li {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.case__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.75rem;
  padding-block: 0.35rem;
  color: var(--gold-light);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 100% 1px;
  transition: background-size var(--dur-3) var(--ease-out);
}
.case__link svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: translate var(--dur-2) var(--ease-out);
}
.case__link:hover { background-size: 0% 1px; background-position: 100% 100%; }
.case__link:hover svg { translate: 2px -2px; }

@media (min-width: 1024px) {
  .case {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    column-gap: clamp(3.5rem, 7vw, 7rem);
  }
  .case__media { padding: 0 0 8% 8%; }
  /* alternate sides; the phone moves to the outer corner */
  .case:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .case:nth-child(even) .case__media { order: 2; padding: 0 8% 8% 0; }
  .case:nth-child(even) .device__phone { left: auto; right: -9%; }
}

/* The booking platform closes the work list. */
.wd-product { margin-top: clamp(3rem, 7vw, 5rem); }


/* --------------------------------------------------------------------------
   03 Process
   -------------------------------------------------------------------------- */
.wd-process { padding-top: 0; }
.steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.step {
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}
.step__num {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1;
}
.step__title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.step__text {
  max-width: 22rem;
  margin-top: 0.6rem;
  color: var(--text-muted);
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
}
@media (min-width: 1180px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; }
  .step {
    padding: 2.5rem 2rem 0;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }
  .step:first-child { padding-left: 0; border-left: 0; }
  .step__title { margin-top: 3.5rem; }
}


/* --------------------------------------------------------------------------
   04 Contact — main.css styles the panel; only spacing changes here
   -------------------------------------------------------------------------- */
.page-web .contact { padding-top: 0; }
