/*
 * Obsidian Oak Digital — site stylesheet.
 *
 * Ingested from templates/obsidianoakdigital/Obsidian Oak Digital.dc.html.
 * Every inline style="" from the Claude Design export lives here as a class,
 * and every style-hover="" is a real :hover rule. That is what lets the CSP
 * drop 'unsafe-inline' entirely (CLAUDE.md §7).
 *
 * Loaded after packages/shared-ui/base.css.
 */

/* --- Design tokens ------------------------------------------------------ */

:root {
  --bg: #0a0a0b;
  --bg-alt: #0e0e10;
  --fg: #e6e3dd;
  --accent: #c9b79a;

  /* Text tones, lightest to dimmest, as used across the template. */
  --fg-muted: #a8a29a;
  --fg-soft: #96908a;
  --fg-dim: #8d867c;
  --fg-faint: #6d675f;
  --fg-placeholder: #5f5c58;

  --rule: rgba(230, 227, 221, 0.12);
  --rule-faint: rgba(230, 227, 221, 0.08);
  --rule-strong: rgba(230, 227, 221, 0.22);

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* Consumed by shared-ui/base.css. */
  --focus-ring: var(--accent);
  --skip-link-bg: var(--fg);
  --skip-link-fg: var(--bg);
  --status-error: #d98b7f;
  --status-pending: var(--fg-dim);

  /* Shared horizontal page padding — was `clamp(20px, 5vw, 64px)` inline. */
  --gutter: clamp(20px, 5vw, 64px);
}

/* --- Document ----------------------------------------------------------- */

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}

a {
  color: var(--fg);
}

a:hover {
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

input::placeholder,
textarea::placeholder {
  color: var(--fg-placeholder);
}

input:focus,
textarea:focus {
  border-color: rgba(201, 183, 154, 0.6);
}

/*
 * The template killed the focus outline outright. Suppress it only for pointer
 * focus: :focus-visible still gets the ring from shared-ui/base.css, so the
 * form stays keyboard-navigable (CLAUDE.md §4). A blanket `outline: none` here
 * out-specifies base.css's :where() rule and silently removes the ring for
 * everyone, keyboard users included.
 */
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

/* --- Animations --------------------------------------------------------- */

@keyframes oo-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes oo-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Shared type patterns ----------------------------------------------- */

/* The small uppercase mono label that opens each section. */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 20px;
}

.meta-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.section-shell {
  max-width: 1440px;
  margin: 0 auto;
}

/* --- Header ------------------------------------------------------------- */

/*
 * mix-blend-mode: difference keeps the nav legible over both the near-black
 * hero canvas and the lighter sections below, without a background plate.
 */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--gutter);
  mix-blend-mode: difference;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--fg);
}

/* The rotated square that stands in for the brand mark. */
.wordmark::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(104px, 14vh, 150px) var(--gutter) clamp(40px, 6vw, 72px);
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

/*
 * Scrim between the canvas and the copy. It carries a gradient of its own, so
 * the hero still reads correctly when the canvas is skipped under
 * prefers-reduced-motion or when JS is unavailable.
 */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 11, 0.55) 0%,
    rgba(10, 10, 11, 0.15) 30%,
    rgba(10, 10, 11, 0.9) 100%
  );
}

.hero-body {
  max-width: 1100px;
  margin-top: auto;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 clamp(20px, 3vw, 32px);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 7.6vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-lede {
  max-width: 48ch;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
  color: var(--fg-muted);
  margin: clamp(24px, 3vw, 36px) 0 0;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 3.5vw, 44px);
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: 20px;
  border-top: var(--rule) 1px solid;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/*
 * Entrance animations.
 *
 * Applied only here, never in the base rules: both keyframes start at
 * opacity 0 with fill-mode `both`, so applying them unconditionally would
 * leave the hero blank in anything that does not actually tick CSS
 * animations. Visible is the default; the motion is the enhancement.
 */
@media (prefers-reduced-motion: no-preference) {
  .hero-body {
    animation: oo-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
  }

  .hero-footer {
    animation: oo-fade 1.4s ease 0.7s both;
  }
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  border: 0;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid rgba(230, 227, 221, 0.22);
  color: var(--fg);
}

.btn-ghost:hover {
  border-color: rgba(230, 227, 221, 0.6);
  color: var(--fg);
}

/* The mono arrow glyph inside a button. */
.btn .arrow {
  font-family: var(--mono);
}

/* --- Capabilities ------------------------------------------------------- */

.capabilities {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  border-top: 1px solid var(--rule-faint);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
}

/* The intro column stays put while the list scrolls past it. */
.capabilities-intro {
  position: sticky;
  top: 96px;
}

.capabilities-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

.capabilities-note {
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-soft);
  margin: 24px 0 0;
  text-wrap: pretty;
}

.capabilities-list {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  min-width: 0;
}

.capability {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(26px, 3vw, 38px) 0;
  border-top: 1px solid var(--rule);
  transition: background 0.3s ease;
}

.capability:hover {
  background: rgba(230, 227, 221, 0.025);
}

.capability-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-faint);
  padding-top: 8px;
}

.capability-body {
  min-width: 0;
}

.capability-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--fg);
}

.capability-text {
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-soft);
  margin: 0 0 18px;
  text-wrap: pretty;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 6px 11px;
  border: 1px solid rgba(230, 227, 221, 0.16);
  border-radius: 999px;
}

/* --- Process ------------------------------------------------------------ */

.process {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  background: var(--bg-alt);
  border-top: 1px solid var(--rule-faint);
}

.process-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(40px, 6vw, 72px);
  max-width: 24ch;
  text-wrap: balance;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(24px, 3vw, 48px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  padding-top: 22px;
  border-top: 1px solid rgba(201, 183, 154, 0.35);
}

.step-key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.step-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.step-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--fg-soft);
  margin: 0;
  text-wrap: pretty;
}

/* --- Contact ------------------------------------------------------------ */

.contact {
  padding: clamp(80px, 12vw, 170px) var(--gutter) clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--rule-faint);
}

.contact-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}

.contact-heading em {
  font-style: italic;
  color: var(--accent);
}

.contact-lede {
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-soft);
  margin: 0 0 36px;
  text-wrap: pretty;
}

.contact-details {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.contact-row dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 24px);
  text-align: right;
  word-break: break-word;
}

/* --- Contact form ------------------------------------------------------- */

.contact-card {
  border: 1px solid rgba(230, 227, 221, 0.14);
  border-radius: 3px;
  padding: clamp(24px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(230, 227, 221, 0.035), rgba(230, 227, 221, 0.01));
}

.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.field input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 9px 0;
  font-size: 16px;
  font-weight: 300;
  transition: border-color 0.25s ease;
}

.field textarea {
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 13px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.25s ease;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.form-aside {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* Success panel, shown by shared-ui/contact-form.js once a send succeeds. */
.contact-sent {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 4vw, 48px) 0;
  text-align: center;
}

.contact-sent:focus-visible {
  outline: none;
}

.contact-sent::before {
  content: '';
  display: inline-block;
  width: 11px;
  height: 11px;
  background: var(--accent);
  transform: rotate(45deg);
  margin: 0 auto 6px;
}

.contact-sent h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  margin: 0;
}

.contact-sent p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-soft);
  margin: 0;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  max-width: 1440px;
  margin: clamp(64px, 10vw, 120px) auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* --- 404 ---------------------------------------------------------------- */

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  gap: 8px;
}

.error-code {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 12px;
}

.error-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.error-text {
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-soft);
  margin: 0 0 36px;
}

/* --- Small screens ------------------------------------------------------ */

@media (max-width: 640px) {
  /* Keep the full studio name and four navigation links readable on phones. */
  .site-header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  /*
   * The sticky intro column fights the list for space once they stack, so it
   * releases below the two-column breakpoint.
   */
  .capabilities-intro {
    position: static;
  }

  .capabilities-list {
    grid-column: auto;
  }

  .site-nav {
    gap: 16px;
    font-size: 11px;
  }

  .hero-footer {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
}

/* --- Inline links in prose ---------------------------------------------- */

/*
 * Links inside a run of body text need a non-colour indicator (WCAG 1.4.1).
 * The nav, the buttons and the contact rows are standalone targets rather than
 * links embedded in a sentence, so they keep the template's colour-only
 * treatment.
 */
.capability-text a,
.hero-lede a,
.contact-lede a,
.error-text a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
