:root {
  color-scheme: light;
  --ink: #13201f;
  --ink-muted: #4d615f;
  --deep: #16343d;
  --deep-strong: #0b252d;
  --paper: #f7f9f5;
  --paper-warm: #fffdf6;
  --line: #d8e2de;
  --signal: #c84a32;
  --signal-dark: #a93928;
  --sea: #1f766f;
  --sea-soft: #dcefeb;
  --brass: #b77812;
  --brass-light: #e0a22e;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(12, 35, 43, 0.16);
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--white);
  color: var(--deep);
  border: 1px solid var(--deep);
  border-radius: 8px;
  transform: translateY(-140%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  width: min(var(--content), calc(100% - 48px));
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transform: translateX(-50%);
  color: var(--paper-warm);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  color: inherit;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 620;
  letter-spacing: 0;
  text-shadow: 0 10px 24px rgba(12, 35, 43, 0.34);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: rgba(12, 35, 43, 0.56);
  border: 1px solid rgba(255, 253, 246, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 253, 246, 0.88);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.site-nav a:hover {
  background: rgba(255, 253, 246, 0.12);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 74svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/daymark-hero.webp");
  background-position: 62% center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 30, 37, 0.96) 0%, rgba(9, 30, 37, 0.76) 44%, rgba(9, 30, 37, 0.18) 100%),
    linear-gradient(180deg, rgba(9, 30, 37, 0.38) 0%, rgba(9, 30, 37, 0.12) 55%, rgba(247, 249, 245, 0.86) 100%);
}

.hero-inner {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  padding: 156px 0 88px;
  color: var(--paper-warm);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--brass);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--brass-light);
}

.hero h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 520;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 680px;
  font-size: 76px;
  line-height: 1.02;
}

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 253, 246, 0.9);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button,
.portfolio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 780;
  text-decoration: none;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.button {
  padding: 0 20px;
}

.button:hover,
.portfolio-link:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: var(--signal);
  color: var(--white);
  border: 1px solid var(--signal);
  box-shadow: 0 16px 30px rgba(143, 47, 34, 0.28);
}

.primary-button:hover {
  background: var(--signal-dark);
  border-color: var(--signal-dark);
  box-shadow: 0 18px 34px rgba(143, 47, 34, 0.34);
}

.secondary-button {
  background: rgba(255, 253, 246, 0.1);
  color: var(--paper-warm);
  border: 1px solid rgba(255, 253, 246, 0.42);
}

.secondary-button:hover {
  background: rgba(255, 253, 246, 0.16);
  border-color: rgba(255, 253, 246, 0.62);
}

.section {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

h2 {
  font-size: 46px;
  line-height: 1.1;
}

.portfolio-section {
  padding-top: 88px;
}

.portfolio-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: end;
}

.portfolio-header p,
.method-intro p,
.contact-panel p {
  margin: 0;
  color: var(--ink-muted);
}

.portfolio-header p,
.method-intro p {
  max-width: 620px;
  font-size: 18px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 24px;
  margin-top: 40px;
}

.portfolio-card {
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(255, 253, 246, 0.98), rgba(237, 246, 242, 0.98)),
    var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portfolio-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 40px;
  align-items: center;
}

.product-copy {
  max-width: 620px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.product-meta span,
.method-step span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 118, 111, 0.12);
  color: var(--sea);
  font-size: 13px;
  font-weight: 800;
}

.portfolio-card h3 {
  margin: 0;
  font-size: 39px;
  line-height: 1.1;
  letter-spacing: 0;
}

.product-value {
  max-width: 560px;
  margin: 14px 0 24px;
  color: var(--ink-muted);
  font-size: 18px;
}

.portfolio-link {
  width: fit-content;
  gap: 8px;
  padding: 0 16px;
  background: var(--deep);
  color: var(--paper-warm);
  white-space: nowrap;
}

.portfolio-link:hover {
  background: var(--signal-dark);
}

.product-visual {
  min-height: 330px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(22, 52, 61, 0.94), rgba(31, 118, 111, 0.62)),
    var(--deep);
  overflow: hidden;
}

.device-shell {
  width: min(270px, 86%);
  padding: 18px;
  border: 1px solid rgba(255, 253, 246, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.94);
  color: var(--deep);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.mock-header,
.mock-evidence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 800;
}

.grade-band {
  margin: 18px 0;
  padding: 18px;
  border-radius: 8px;
  background: var(--deep);
  color: var(--paper-warm);
}

.grade-band strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 1;
  font-weight: 520;
}

.grade-band span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 253, 246, 0.78);
  font-weight: 780;
}

.mock-evidence span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  border-radius: 8px;
  background: var(--sea-soft);
  color: var(--sea);
}

.mock-lines {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.mock-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #d7e0dc;
}

.mock-lines span:nth-child(2) {
  width: 82%;
}

.mock-lines span:nth-child(3) {
  width: 64%;
}

.method-section {
  padding-top: 0;
}

.method-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 40px;
  align-items: start;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-warm);
}

.method-intro {
  max-width: 470px;
}

.method-intro p {
  margin-top: 18px;
}

.daymark-note {
  padding-left: 16px;
  border-left: 3px solid var(--brass);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.method-step {
  min-height: 220px;
  padding: 24px;
  background: var(--white);
}

.method-step h3 {
  margin: 54px 0 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.18;
}

.method-step p {
  margin: 0;
  color: var(--ink-muted);
}

.contact-section {
  width: 100%;
  padding: 80px 0 88px;
  background: var(--deep);
  color: var(--paper-warm);
}

.contact-panel {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.contact-panel .section-kicker {
  color: var(--brass-light);
}

.contact-panel p {
  max-width: 580px;
  color: rgba(255, 253, 246, 0.76);
  font-size: 18px;
}

.contact-list {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 253, 246, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.06);
  font-style: normal;
}

.contact-list a,
.contact-list span {
  display: block;
  overflow-wrap: anywhere;
}

.contact-list a {
  color: var(--paper-warm);
  font-size: 20px;
  font-weight: 780;
  text-decoration-color: rgba(255, 253, 246, 0.34);
  text-underline-offset: 4px;
  transition: text-decoration-color 150ms ease;
}

.contact-list a:hover {
  text-decoration-color: var(--brass-light);
}

.contact-list span {
  color: rgba(255, 253, 246, 0.68);
  font-size: 14px;
}

.site-footer {
  width: min(var(--content), calc(100% - 48px));
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-muted);
  font-size: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  color: var(--ink);
}

@media (max-width: 920px) {
  .site-header {
    width: calc(100% - 32px);
  }

  .hero {
    min-height: 76svh;
  }

  .hero-media {
    background-position: 70% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(9, 30, 37, 0.94) 0%, rgba(9, 30, 37, 0.74) 62%, rgba(9, 30, 37, 0.22) 100%),
      linear-gradient(180deg, rgba(9, 30, 37, 0.5) 0%, rgba(9, 30, 37, 0.2) 58%, rgba(247, 249, 245, 0.86) 100%);
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding: 140px 0 80px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-copy {
    max-width: 540px;
    font-size: 18px;
  }

  .section {
    width: calc(100% - 32px);
    padding: 64px 0;
  }

  .portfolio-section {
    padding-top: 64px;
  }

  .portfolio-header,
  .portfolio-body,
  .method-panel,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  h2 {
    font-size: 36px;
  }

  .method-steps {
    grid-template-columns: 1fr;
  }

  .method-step {
    min-height: auto;
  }

  .method-step h3 {
    margin-top: 28px;
  }

  .contact-panel {
    width: calc(100% - 32px);
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
  }

  .brand {
    min-height: 40px;
    font-size: 21px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
    font-size: 13px;
  }

  .hero {
    min-height: 70svh;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-inner {
    padding-top: 160px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-copy,
  .portfolio-header p,
  .product-value,
  .method-intro p,
  .contact-panel p {
    font-size: 16px;
  }

  .button,
  .portfolio-link {
    width: 100%;
  }

  h2 {
    font-size: 31px;
  }

  .portfolio-card,
  .method-panel {
    padding: 24px;
  }

  .portfolio-card h3 {
    font-size: 31px;
  }

  .product-visual {
    min-height: 285px;
  }

  .device-shell {
    width: min(250px, 92%);
  }

  .contact-list a {
    font-size: 18px;
  }

  .site-footer {
    width: calc(100% - 32px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
