/* ==========================================================================
   website-development — bespoke composition, graphite theme.
   Relies on dark-shell.css (loaded from headExtra) for the dark --lc-* tokens:
   --lc-bg / --lc-panel / --lc-panel2 / --lc-line / --lc-line2 / --lc-ink /
   --lc-ink-soft / --lc-accent / --lc-teal + Space Grotesk / IBM Plex fonts.
   The browser mockups in the hero stay intentionally light ("paper" windows
   on the dark stage) — every other surface is dark.
   ========================================================================== */

.service-page--website-development.service-page--custom {
  background:
    radial-gradient(900px 480px at 92% -10%, rgba(255, 94, 46, 0.1), transparent 60%),
    var(--lc-bg);
}

.wd {
  --wd-pad: clamp(16px, 3vw, 28px);
  --wd-max: 1240px;
  color: var(--lc-ink);
  font-family: var(--lc-font-text);
}

.wd-kicker {
  font-family: var(--lc-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lc-ink-soft);
  margin: 0 0 10px;
}

.wd-kicker--on-dark { color: var(--lc-accent); }

.wd-lead {
  margin: 0;
  max-width: 42ch;
  color: var(--lc-ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.45;
}

.wd-brand {
  font-family: var(--lc-font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  color: var(--lc-ink);
}

/* —— Hero: dense split, no empty air —— */
.wd-hero {
  padding: clamp(20px, 3vw, 36px) 0 0;
  border-bottom: 1px solid var(--lc-line);
}

.wd-hero__grid {
  max-width: var(--wd-max);
  margin: 0 auto;
  padding: 0 var(--wd-pad);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: stretch;
  min-height: min(86vh, 820px);
}

.wd-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(8px, 2vw, 20px) 0 clamp(20px, 3vw, 32px);
  gap: 14px;
}

.wd-hero__title {
  margin: 0;
  font-family: var(--lc-font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  display: grid;
  gap: 0.02em;
}

.wd-hero__line {
  display: block;
  opacity: 0;
  transform: translateY(1.1em);
  transition: transform 0.7s var(--lc-ease), opacity 0.7s var(--lc-ease);
  transition-delay: calc(var(--i) * 70ms + 80ms);
}
.wd.is-ready .wd-hero__line {
  opacity: 1;
  transform: none;
}
.wd-hero__line:last-child {
  color: var(--lc-accent);
}

.wd-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.wd-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--lc-line);
}

.wd-metric {
  display: grid;
  gap: 2px;
}
.wd-metric b {
  font-family: var(--lc-font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  letter-spacing: -0.03em;
  color: var(--lc-ink);
}
.wd-metric span {
  font-family: var(--lc-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lc-ink-soft);
}

.wd-hero__stage {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 28px);
  border-left: 1px solid var(--lc-line);
  background:
    radial-gradient(520px 280px at 70% 20%, rgba(255, 94, 46, 0.14), transparent 70%),
    linear-gradient(165deg, var(--lc-panel2) 0%, var(--lc-panel) 55%, var(--lc-surface-3) 100%);
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.wd-site {
  position: relative;
  width: min(100%, 420px);
  height: min(100%, 460px);
  isolation: isolate;
}

.wd-site__glow {
  position: absolute;
  inset: 18% 10% 10%;
  background: radial-gradient(circle, rgba(255, 94, 46, 0.2), transparent 68%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

/* Light "paper" browser windows — deliberate light artifacts on the dark
   stage, so everything inside gets explicit light-scheme colors. */
.wd-site__browser {
  position: absolute;
  left: 0;
  right: 0;
  background: #fdfdfb;
  border: 1px solid rgba(10, 11, 14, 0.18);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 1;
}

.wd-site__browser--back {
  top: 8%;
  transform: translate(18px, 0) rotate(2.2deg);
  opacity: 0.72;
  animation: wd-float-back 7s ease-in-out infinite;
}

.wd-site__browser--front {
  top: 22%;
  transform: translate(-6px, 0) rotate(-1.4deg);
  z-index: 2;
  animation: wd-float-front 5.5s ease-in-out infinite;
}

.wd-site__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e2da;
  background: #f2f0ea;
}
.wd-site__chrome i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6d2c8;
}
.wd-site__chrome i:nth-child(1) { background: #e2b4a0; }
.wd-site__chrome i:nth-child(2) { background: #e8c98a; }
.wd-site__chrome i:nth-child(3) { background: #b7c9b0; }
.wd-site__chrome span {
  margin-left: 8px;
  font-family: var(--lc-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: #6d7280;
}

.wd-site__body {
  padding: 16px 14px 18px;
  display: grid;
  gap: 10px;
}

.wd-site__bar {
  height: 10px;
  border-radius: 6px;
  background: #e8e5dd;
}
.wd-site__bar.w70 { width: 70%; }
.wd-site__bar.w40 { width: 40%; }

.wd-site__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.wd-site__tiles b {
  display: block;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7f5ef, #e8e5dd);
  border: 1px solid #e0dcd2;
}

.wd-site__label {
  margin: 0;
  font-family: var(--lc-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lc-accent);
}

.wd-site__path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.wd-site__path li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2dfd6;
  background: #f7f5ef;
  color: #17181d;
  font-family: var(--lc-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateX(10px);
  animation: wd-step-in 0.55s var(--lc-ease) forwards;
  animation-delay: calc(0.35s + var(--i) * 0.14s);
}
.wd-site__path li span {
  font-family: var(--lc-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--lc-accent);
}
.wd-site__path li:nth-child(3) {
  border-color: var(--lc-accent);
  background: var(--lc-accent);
  color: #0a0b0e;
}
.wd-site__path li:nth-child(3) span { color: rgba(10, 11, 14, 0.7); }

.wd-site__cta-fake {
  height: 36px;
  border-radius: 10px;
  background: var(--lc-accent);
  margin-top: 4px;
  box-shadow: 0 8px 18px rgba(255, 94, 46, 0.3);
  animation: wd-cta-pulse 2.4s ease-in-out infinite;
}

@keyframes wd-float-front {
  0%, 100% { transform: translate(-6px, 0) rotate(-1.4deg); }
  50% { transform: translate(-6px, -8px) rotate(-1.1deg); }
}
@keyframes wd-float-back {
  0%, 100% { transform: translate(18px, 0) rotate(2.2deg); }
  50% { transform: translate(18px, 6px) rotate(1.8deg); }
}
@keyframes wd-step-in {
  to { opacity: 1; transform: none; }
}
@keyframes wd-cta-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.015); filter: brightness(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .wd-site__browser--back,
  .wd-site__browser--front,
  .wd-site__cta-fake { animation: none; }
  .wd-site__path li {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .wd-hero__line { opacity: 1; transform: none; }
}

/* —— Sticky rail —— */
.wd-rail {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  gap: 0;
  overflow-x: auto;
  max-width: var(--wd-max);
  margin: 0 auto;
  padding: 0 var(--wd-pad);
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lc-line);
  scrollbar-width: none;
}
.wd-rail::-webkit-scrollbar { display: none; }
.wd-rail a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--lc-ink-soft);
  font-family: var(--lc-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.wd-rail a span { color: var(--lc-accent); opacity: 0.7; }
.wd-rail a.is-active,
.wd-rail a:hover {
  color: var(--lc-ink);
  border-bottom-color: var(--lc-accent);
}

/* —— Sections: tighter —— */
.wd-section {
  max-width: var(--wd-max);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) var(--wd-pad);
  border-bottom: 1px solid var(--lc-line);
}

.wd-section__head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(22px, 3vw, 32px);
  max-width: 52ch;
}
.wd-section__head h2 {
  margin: 0;
  font-family: var(--lc-font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--lc-ink);
}

/* Cut toggle */
.wd-cut__toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--lc-line2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--lc-panel);
}
.wd-cut__toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 14px 12px;
  font-family: var(--lc-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lc-ink-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.wd-cut__toggle button:hover { color: var(--lc-ink); }
.wd-cut__toggle button.is-on {
  background: var(--lc-accent);
  color: #0a0b0e;
}

.wd-cut__panels { position: relative; }
.wd-cut__panel {
  list-style: none;
  margin: 0;
  padding: 18px 4px;
  display: none;
  grid-template-columns: 1fr;
  gap: 0;
}
.wd-cut__panel.is-on { display: grid; }
.wd-cut__panel li {
  padding: 14px 4px;
  border-top: 1px solid var(--lc-line);
  color: var(--lc-ink);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.wd-cut__panel[data-panel='right'] li {
  border-image: linear-gradient(90deg, var(--lc-accent), transparent) 1;
}

/* Stack layers */
.wd-stack {
  display: grid;
  gap: 8px;
}
.wd-layer {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px 16px;
  background: var(--lc-panel);
  border: 1px solid var(--lc-line);
  border-radius: 14px;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: transform 0.55s var(--lc-ease), opacity 0.55s var(--lc-ease),
    background 0.25s, border-color 0.25s, box-shadow 0.25s;
  transition-delay: calc(var(--i) * 55ms);
}
.wd-layer.is-in {
  opacity: 1;
  transform: none;
}
@media (hover: hover) {
  .wd-layer.is-in:hover {
    transition-delay: 0s;
    background: var(--lc-panel2);
    border-color: var(--lc-accent);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  }
}
.wd-layer__n {
  font-family: var(--lc-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--lc-accent);
  padding-top: 4px;
}
.wd-layer__body h3 {
  margin: 0 0 6px;
  font-family: var(--lc-font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--lc-ink);
}
.wd-layer__body p {
  margin: 0;
  color: var(--lc-ink-soft);
  line-height: 1.45;
  max-width: 52ch;
}

/* Work strip */
.wd-section--work {
  padding-right: 0;
  max-width: none;
  padding-left: max(var(--wd-pad), calc((100vw - var(--wd-max)) / 2 + var(--wd-pad)));
}
.wd-section--work .wd-section__head {
  padding-right: var(--wd-pad);
}
.wd-strip {
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  cursor: grab;
}
.wd-strip.is-dragging { cursor: grabbing; }
.wd-strip__track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding-right: var(--wd-pad);
}
.wd-case {
  width: min(78vw, 340px);
  min-height: 220px;
  padding: 22px 20px;
  border-radius: 16px;
  background: var(--lc-panel);
  border: 1px solid var(--lc-line);
  color: var(--lc-ink);
  display: grid;
  align-content: space-between;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.5s var(--lc-ease), opacity 0.5s var(--lc-ease),
    border-color 0.25s, background 0.25s, box-shadow 0.25s;
  transition-delay: calc(var(--i) * 60ms);
}
.wd-case.is-in {
  opacity: 1;
  transform: none;
}
@media (hover: hover) {
  .wd-case.is-in:hover {
    transition-delay: 0s;
    background: var(--lc-panel2);
    border-color: var(--lc-accent);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  }
}
.wd-case__tag {
  font-family: var(--lc-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lc-accent);
}
.wd-case h3 {
  margin: 24px 0 0;
  font-family: var(--lc-font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--lc-ink);
}
.wd-case__meta {
  margin: 16px 0 0;
  font-family: var(--lc-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lc-ink-soft);
}

/* Blueprint dense grid */
.wd-blueprint {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--lc-line);
  border: 1px solid var(--lc-line);
  border-radius: 14px;
  overflow: hidden;
}
.wd-cell {
  background: var(--lc-panel);
  padding: 18px 16px;
  display: grid;
  gap: 6px;
  min-height: 108px;
  transition: background 0.2s;
}
.wd-cell:hover { background: var(--lc-panel2); }
.wd-cell strong {
  font-family: var(--lc-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--lc-ink);
}
.wd-cell span {
  color: var(--lc-ink-soft);
  font-size: 0.92rem;
  line-height: 1.35;
}

/* Blueprint cell that links to another service */
a.wd-cell {
  text-decoration: none;
  color: inherit;
}
.wd-cell--link strong { color: var(--lc-accent); }
.wd-cell--link:hover {
  background: rgba(255, 94, 46, 0.09);
}

/* Fit: who it is for / included / not included */
.wd-fit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.wd-fit__card {
  padding: 18px 16px;
  background: var(--lc-panel);
  border: 1px solid var(--lc-line);
  border-radius: 14px;
  transition: border-color 0.25s;
}
@media (hover: hover) {
  .wd-fit__card:hover { border-color: var(--lc-line2); }
}
.wd-fit__card h3 {
  margin: 0 0 12px;
  font-family: var(--lc-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--lc-ink);
}
.wd-fit__card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.wd-fit__card li {
  position: relative;
  padding-left: 14px;
  color: var(--lc-ink-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}
.wd-fit__card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 2px;
  background: var(--lc-accent);
}
.wd-fit__card a {
  color: var(--lc-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wd-fit__card a:hover { color: var(--lc-ink); }
.wd-fit__card--out {
  background: transparent;
  border-style: dashed;
  border-color: var(--lc-line2);
}
.wd-fit__note {
  margin: 14px 0 0;
  font-family: var(--lc-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--lc-ink-soft);
}

/* FAQ — panel cards, same look as the cms landing */
.wd-ask {
  display: grid;
  gap: 8px;
}
.wd-faq {
  border: 1px solid var(--lc-line);
  border-radius: 12px;
  background: var(--lc-panel);
  padding: 2px 20px;
  transition: border-color 0.2s;
}
.wd-faq[open] { border-color: var(--lc-line2); }
.wd-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 28px 18px 0;
  font-family: var(--lc-font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--lc-ink);
  position: relative;
}
.wd-faq summary::-webkit-details-marker { display: none; }
.wd-faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 18px;
  font-family: var(--lc-font-mono);
  color: var(--lc-accent);
}
.wd-faq[open] summary::after { content: '–'; }
.wd-faq p {
  margin: 0 0 20px;
  max-width: 62ch;
  color: var(--lc-ink-soft);
  line-height: 1.55;
}

/* Final */
.wd-final {
  background:
    radial-gradient(760px 320px at 82% 18%, rgba(255, 94, 46, 0.14), transparent 62%),
    var(--lc-surface-3);
  border-top: 1px solid var(--lc-line);
  color: var(--lc-ink);
  padding: clamp(48px, 8vw, 96px) var(--wd-pad);
}
.wd-final__inner {
  max-width: var(--wd-max);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.wd-final h2 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--lc-font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--lc-ink);
}
.wd-final .wd-lead { color: var(--lc-ink-soft); }
.wd-final .btn--ghost {
  color: var(--lc-ink);
  border-color: var(--lc-line2);
}
.wd-final .btn--ghost:hover {
  border-color: var(--lc-accent);
  color: var(--lc-ink);
}

/* "See also" pills in the final block — same as .cms-more */
.wd-more {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px dashed var(--lc-line2);
}
.wd-more__label {
  font-family: var(--lc-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lc-ink-soft);
}
.wd-more__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wd-more__link {
  font-family: var(--lc-font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--lc-ink-soft);
  border: 1px solid var(--lc-line2);
  border-radius: 100px;
  padding: 7px 13px;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s;
}
.wd-more__link:hover {
  border-color: var(--lc-teal);
  color: var(--lc-teal);
}

@media (max-width: 960px) {
  .wd-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .wd-hero__stage {
    border-left: 0;
    border-radius: 16px;
    min-height: 260px;
  }
  .wd-blueprint {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wd-metrics {
    grid-template-columns: 1fr;
  }
  .wd-fit {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wd-layer {
    grid-template-columns: 40px 1fr;
  }
  .wd-blueprint {
    grid-template-columns: 1fr;
  }
}
