/* =========================================================
   Daniel Net Services
   Light canvas system. Tokens sourced from Apple's published
   design language: #ffffff canvas, #f5f5f7 parchment,
   #1d1d1f ink, #0066cc action blue, 18px card radius,
   one shadow in the whole system.
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  --white:      #ffffff;
  --parchment:  #f5f5f7;
  --ink:        #1d1d1f;
  --ink-2:      #6e6e73;
  --hairline:   #d2d2d7;
  --hairline-soft: #e8e8ed;

  --blue:       #0066cc;
  --blue-hover: #0071e3;
  --blue-dark:  #2997ff;

  --dark:       #1d1d1f;
  --on-dark:    #f5f5f7;
  --on-dark-2:  #a1a1a6;
  --hairline-dark: rgba(255, 255, 255, 0.16);

  /* the only shadow in the system */
  --shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px;

  --r-sm:   12px;
  --r-card: 18px;
  --r-pill: 9999px;

  --wrap-text: 900px;
  --wrap-wide: 1200px;

  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

.wrap-wide, .wrap-text {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap-wide { max-width: calc(var(--wrap-wide) + 48px); }
.wrap-text { max-width: calc(var(--wrap-text) + 48px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--r-pill);
}
.skip-link:focus { left: 24px; }

/* ---------- TYPE ---------- */
.display {
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 20px;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 22px;
  text-wrap: balance;
}
.h2.center { text-align: center; margin-bottom: clamp(44px, 6vw, 72px); }

.lead {
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.31;
  letter-spacing: 0.004em;
  font-weight: 400;
  color: var(--ink-2);
  margin: 0 0 32px;
}
.lead-sm { font-size: clamp(18px, 1.6vw, 21px); }

/* ---------- BUTTONS / LINKS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  cursor: pointer;
  transition: background-color .28s var(--ease), transform .28s var(--ease);
}
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: scale(0.96); }

.btn-sm { padding: 8px 17px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: 0.5; pointer-events: none; }

.link-chevron {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--blue);
  font-size: 17px;
}
.link-chevron:hover { text-decoration: underline; }
.chev { transition: transform .28s var(--ease); display: inline-block; }
.link-chevron:hover .chev,
.work-card:hover .chev { transform: translateX(3px); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
}
.hero-copy .actions,
.center-actions { justify-content: center; }

/* ---------- NAV ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);                 /* solid fallback */
  border-bottom: 1px solid var(--hairline-soft);
}

/* Frosted glass only where the browser can actually blur, otherwise the
   translucent bar just muddies the content scrolling under it. */
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .nav-wrap {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav-wrap {
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.nav {
  max-width: calc(var(--wrap-wide) + 48px);
  margin-inline: auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0 auto 0 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink);
  opacity: 0.82;
  transition: opacity .25s var(--ease);
}
.nav-links a:hover { opacity: 1; }

.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.lang {
  display: flex;
  gap: 1px;
  padding: 2px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.05);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { background: var(--white); color: var(--ink); font-weight: 500; }

.menu-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-bar {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--ink);
  transition: transform .35s var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  max-width: calc(var(--wrap-wide) + 48px);
  margin-inline: auto;
  padding: 4px 24px 20px;
}
.mobile-menu a {
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 19px;
  font-weight: 500;
}
.mobile-menu[hidden] { display: none; }

.lang-mobile { display: none; }
.lang-mobile .lang-btn { padding: 9px 17px; font-size: 13px; }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(76px, 8.5vw, 128px) 0; }
.section-parchment { background: var(--parchment); }

.section-dark {
  background: var(--dark);
  color: var(--on-dark);
}
.section-dark .price-note,
.section-dark .price-label { color: var(--on-dark-2); }

/* ---------- HERO ---------- */
.hero { padding: clamp(56px, 7vw, 92px) 0 0; text-align: center; }

.hero-copy { padding-bottom: clamp(40px, 5vw, 60px); }
.hero-copy .lead { max-width: 34ch; margin-inline: auto; }

.hero-media {
  max-width: 980px;
  margin-inline: auto;
  padding-inline: 24px;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}

/* ---------- TRUST STRIP ---------- */
.strip { padding: clamp(48px, 6vw, 76px) 0 0; }
.strip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 44px;
}
.strip-list li {
  font-size: 15px;
  color: var(--ink-2);
  position: relative;
}
.strip-list li + li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--hairline);
  transform: translateY(-50%);
}

/* ---------- TILES ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.tile {
  grid-column: span 2;
  background: var(--white);
  border-radius: var(--r-card);
  padding: clamp(28px, 3vw, 40px);
}
.tile-lead { grid-column: span 3; }
.tiles .tile:nth-child(2) { grid-column: span 3; }

.tile h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.17;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.tile p { margin: 0; color: var(--ink-2); }

/* ---------- WORK ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 3.5vw, 48px);
}
.work-card { display: block; }

.work-thumb {
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--parchment);
  margin-bottom: 18px;
}
.work-thumb img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.work-card:hover .work-thumb img { transform: scale(1.03); }

.work-name {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.19;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.work-link { font-size: 15px; color: var(--blue); }

/* ---------- PRICING ---------- */
.price-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(36px, 7vw, 96px);
  text-align: center;
}
.price-block { min-width: 220px; }

.price-label {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0;
}
.price-figure {
  margin: 0 0 12px;
  font-size: clamp(56px, 8vw, 88px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.price-figure .cur { font-size: 0.5em; vertical-align: 0.5em; margin-right: 2px; }
.price-figure .per {
  font-size: 0.24em;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--on-dark-2);
}
.price-note {
  margin: 0 auto;
  max-width: 27ch;
  font-size: 15px;
  line-height: 1.4;
}

.price-list {
  list-style: none;
  max-width: 560px;
  margin: clamp(48px, 6vw, 72px) auto clamp(40px, 5vw, 56px);
  padding: 0;
}
.price-list li {
  padding: 16px 0;
  border-top: 1px solid var(--hairline-dark);
  font-size: 17px;
}
.price-list li:last-child { border-bottom: 1px solid var(--hairline-dark); }

/* ---------- PROCESS ---------- */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  counter-reset: step;
}
.proc-item { counter-increment: step; }
.proc-item h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.17;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.proc-item h3::before {
  content: counter(step);
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: 0;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.proc-item p { margin: 0; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-sign {
  position: relative;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
}
.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: var(--blue);
  transition: transform .3s var(--ease);
}
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); }

.faq-item p {
  margin: 0;
  padding: 0 48px 26px 0;
  color: var(--ink-2);
  max-width: 68ch;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--hairline);
}
.contact-list li:last-child { border-bottom: 1px solid var(--hairline); }
.contact-k {
  flex: 0 0 68px;
  font-size: 15px;
  color: var(--ink-2);
}
.contact-list a { color: var(--blue); }
.contact-list a:hover { text-decoration: underline; }

/* ---------- FORM ---------- */
.form {
  background: var(--parchment);
  border-radius: var(--r-card);
  padding: clamp(26px, 3.2vw, 40px);
  display: grid;
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; line-height: 1.47; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-hover);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #b3261e; }

.hint { margin: 0; font-size: 14px; color: var(--ink-2); }
.err { margin: 0; font-size: 14px; color: #b3261e; font-weight: 500; }

.form-status { margin: 0; font-size: 15px; min-height: 1.4em; color: var(--ink-2); }
.form-status.is-ok { color: #0a7c42; font-weight: 500; }
.form-status.is-bad { color: #b3261e; font-weight: 500; }

/* honeypot: hidden from people, visible to dumb bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-legal {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}
.form-legal a { color: var(--blue); }
.form-legal a:hover { text-decoration: underline; }

/* ---------- ABOUT ---------- */
/* Works as a centred text block on its own, and becomes a two column
   layout automatically once the photo figure is uncommented. */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 56px);
}

.about-photo {
  flex: 0 0 auto;
  width: clamp(160px, 22vw, 220px);
  margin: 0;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-pill);
  background: var(--white);
}

.about-copy {
  flex: 1 1 380px;
  max-width: 58ch;
}
.about-copy p {
  margin: 0 0 16px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
}
.about-copy p:last-child { margin-bottom: 0; }

/* with no photo the copy centres itself rather than sitting off to one side */
.about:not(:has(.about-photo)) .about-copy {
  flex-basis: auto;
  margin-inline: auto;
  text-align: center;
}

@media (max-width: 700px) {
  .about { flex-direction: column; }
  .about-copy { text-align: left; }
  .about:not(:has(.about-photo)) .about-copy { text-align: left; }
}

/* ---------- LEGAL / PROSE PAGES ---------- */
.legal { padding: clamp(56px, 7vw, 92px) 0 clamp(76px, 8vw, 120px); }
.legal h1 {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 12px;
}
.legal .updated { margin: 0 0 44px; color: var(--ink-2); font-size: 15px; }
.legal h2 {
  font-size: 24px;
  line-height: 1.17;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 44px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.legal p, .legal li { color: var(--ink-2); max-width: 68ch; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--ink); font-weight: 500; }

/* ---------- FOOTER ---------- */
.footer { padding: 34px 0; border-top: 1px solid var(--hairline-soft); }
.footer-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.footer-brand { font-size: 14px; font-weight: 500; }
.footer-meta { font-size: 14px; color: var(--ink-2); }
.footer-links { display: flex; align-items: baseline; gap: 20px; }
.footer-links a { font-size: 14px; color: var(--blue); }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { font-size: 14px; color: var(--ink-2); }

/* ---------- REVEAL ---------- */
/* Content is visible by default. It is only hidden for the entry animation
   when scripting is available to bring it back, and .reveal-fallback un-hides
   everything if script.js never boots. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-in,
.js.reveal-fallback .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav-right { margin-left: auto; }
  .mobile-menu { display: flex; }

  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-lead, .tiles .tile:nth-child(2) { grid-column: span 1; }

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

@media (max-width: 700px) {
  .nav-right .lang { display: none; }
  .lang-mobile { display: flex; width: max-content; margin-top: 20px; }

  .tiles { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }

  .hero-media img { aspect-ratio: 4 / 3; }
  .strip-list { flex-direction: column; align-items: center; gap: 10px; }
  .strip-list li + li::before { display: none; }

  .actions .btn { width: 100%; }
  .hero-copy .actions { flex-direction: column; }
  .faq-item p { padding-right: 0; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
