:root {
  --ink: #0b1f2a;
  --ink-soft: #2a4554;
  --mist: #eef5f3;
  --paper: #f7fbf9;
  --line: rgba(11, 31, 42, 0.12);
  --accent: #0f7a6c;
  --accent-deep: #0a5c52;
  --sand: #d8ebe4;
  --glow-a: rgba(15, 122, 108, 0.28);
  --glow-b: rgba(42, 110, 150, 0.22);
  --shadow: 0 18px 50px rgba(11, 31, 42, 0.1);
  --radius: 18px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 122, 108, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(42, 110, 150, 0.14), transparent 55%),
    linear-gradient(180deg, #f4faf8 0%, var(--paper) 38%, #eef4f6 100%);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 249, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 251, 249, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.35rem;
}

.nav a,
.header-cta,
.footer-links a {
  text-decoration: none;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: grid;
  align-items: end;
  overflow: clip;
  padding: 5.5rem 0 4.5rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 31, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 42, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 40%, black 20%, transparent 72%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: drift 10s ease-in-out infinite alternate;
}

.hero-glow-a {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  right: 4%;
  top: 8%;
  background: var(--glow-a);
}

.hero-glow-b {
  width: 34vw;
  height: 34vw;
  max-width: 420px;
  max-height: 420px;
  right: 22%;
  top: 38%;
  background: var(--glow-b);
  animation-delay: -3s;
}

.hero-frame {
  position: absolute;
  right: max(4vw, calc((100% - 1120px) / 2));
  top: 18%;
  width: min(46vw, 520px);
  aspect-ratio: 4 / 3;
  transform: perspective(1200px) rotateY(-12deg) rotateX(6deg);
  animation: rise-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-screen {
  height: 100%;
  border: 1px solid rgba(11, 31, 42, 0.14);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(216, 235, 228, 0.72));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screen-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.screen-bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(11, 31, 42, 0.18);
}

.screen-body {
  padding: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.screen-line {
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(11, 31, 42, 0.1);
}

.screen-line.w80 {
  width: 80%;
}

.screen-line.w55 {
  width: 55%;
}

.screen-blocks {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
  min-height: 9rem;
}

.screen-block {
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 122, 108, 0.22), rgba(15, 122, 108, 0.08));
}

.screen-block.tall {
  background: linear-gradient(180deg, rgba(42, 110, 150, 0.28), rgba(42, 110, 150, 0.1));
  transform: translateY(0.8rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-mark {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16ch;
}

.hero-lead {
  margin: 1.1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.96rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #f4fffc;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(11, 31, 42, 0.22);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.work,
.process,
.book {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.2rem;
}

.section-head h2,
.book-copy h2,
.book-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-head h2,
.book-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.section-head p,
.book-copy > p {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.work-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

.work-hint {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.portfolio {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.folio {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.folio--feature {
  grid-row: span 2;
}

.folio-stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  cursor: default;
  background: #d9e7e2;
  transform: translateZ(0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.folio:hover .folio-stage,
.folio:focus-within .folio-stage {
  transform: translateY(-4px);
}

.browser {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 220px;
}

.folio--feature .browser {
  min-height: 100%;
  height: 100%;
}

.folio--feature .folio-stage {
  min-height: 560px;
  height: 100%;
}

.folio:not(.folio--feature) .folio-stage {
  aspect-ratio: 4 / 3;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(11, 31, 42, 0.08);
  backdrop-filter: blur(8px);
}

.browser-chrome span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: rgba(11, 31, 42, 0.16);
}

.browser-chrome span:nth-child(1) {
  background: #ef9a8a;
}

.browser-chrome span:nth-child(2) {
  background: #e2c37a;
}

.browser-chrome span:nth-child(3) {
  background: #8fceb8;
}

.browser-url {
  margin-left: 0.55rem;
  flex: 1;
  min-width: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(11, 31, 42, 0.05);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-shell {
  position: relative;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  background: #c9dad4;
  overflow: hidden;
}

.feature-track {
  position: relative;
  min-height: 0;
  height: 100%;
}

.feature-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.feature-slide.is-current {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.feature-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transform-origin: 50% 50%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.folio.is-active .feature-slide.is-current img {
  transform: scale(1.22);
  transition-duration: 0.12s;
  transition-timing-function: linear;
}

.feature-ui {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  pointer-events: none;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  pointer-events: auto;
  max-width: calc(100% - 5.5rem);
}

.feature-pills button {
  border: 0;
  cursor: pointer;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(11, 31, 42, 0.62);
  color: #f4fffc;
  font-size: 0.72rem;
  font-weight: 650;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.feature-pills button[aria-selected="true"] {
  background: var(--accent);
  transform: translateY(-1px);
}

.feature-nav {
  display: flex;
  gap: 0.35rem;
  pointer-events: auto;
  flex-shrink: 0;
}

.feature-btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(11, 31, 42, 0.12);
}

.feature-btn:hover {
  background: #fff;
}

.folio-meta {
  padding-inline: 0.15rem;
}

.folio-index {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.folio-meta h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.folio--feature .folio-meta h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.folio-meta > p:not(.folio-index) {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 36ch;
}

.process {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.steps li {
  padding-top: 1rem;
  border-top: 1px solid rgba(11, 31, 42, 0.16);
}

.steps span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.book-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}

.faq {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.faq-layout {
  display: grid;
  gap: 1.75rem;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 46rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(15, 122, 108, 0.35);
  background: rgba(255, 255, 255, 0.85);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -0.2rem;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}

.faq-answer {
  padding: 0 1.2rem 1.15rem;
}

.faq-answer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 42ch;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.book-alt {
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.book-alt + .contact-row {
  margin-top: 0.75rem;
}

.book-note {
  margin: 1.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.book-note a {
  color: var(--accent-deep);
  font-weight: 600;
}

.book-panel {
  padding: 1.8rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #0f7a6c, #0b1f2a 78%);
  color: #eef8f5;
  box-shadow: var(--shadow);
}

.book-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.book-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.book-panel li {
  padding-left: 1.1rem;
  position: relative;
}

.book-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #9be0d3;
}

.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 0.55rem;
}

.footer-inner > p {
  margin: 0;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.6rem 0 0.4rem;
}

.footer-links a {
  color: var(--ink);
  font-weight: 600;
}

.legal {
  font-size: 0.88rem;
}

.legal a {
  color: var(--accent-deep);
  font-weight: 600;
}

.city-hero {
  padding: 5.5rem 0 3rem;
}

.city-eyebrow {
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent);
}

.city-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 14ch;
}

.city-lead {
  margin: 1.1rem 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.city-hero .hero-actions {
  margin-top: 1.6rem;
}

.city-body {
  padding: 1rem 0 3.5rem;
}

.city-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.75rem;
  align-items: start;
}

.city-grid h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.city-grid > div > p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42ch;
}

.city-bullets {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.city-bullets li {
  position: relative;
  padding-left: 1.1rem;
  font-weight: 600;
}

.city-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.city-card {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #0f7a6c, #0b1f2a 78%);
  color: #eef8f5;
  box-shadow: var(--shadow);
}

.city-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.city-card p {
  margin: 0 0 1.2rem;
  color: rgba(238, 248, 245, 0.88);
  font-size: 0.98rem;
}

.city-card .btn-primary {
  background: #fff;
  color: var(--ink);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateY(-12deg) rotateX(6deg) translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: perspective(1200px) rotateY(-12deg) rotateX(6deg) translateY(0) scale(1);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-18px, 22px, 0) scale(1.06);
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding: 4.5rem 0 3.5rem;
  }

  .hero-frame {
    position: relative;
    right: auto;
    top: auto;
    width: min(100%, 420px);
    margin: 0 auto 2rem;
    transform: none;
    animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-media {
    position: relative;
    inset: auto;
  }

  .hero-glow-a,
  .hero-glow-b,
  .hero-grid {
    display: none;
  }

  .hero {
    display: flex;
    flex-direction: column-reverse;
  }

  .hero-copy {
    max-width: none;
  }

  .steps,
  .book-layout {
    grid-template-columns: 1fr;
  }

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

  .work-head {
    align-items: start;
    flex-direction: column;
  }

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

  .folio--feature {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .folio--feature .folio-stage {
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(1120px, calc(100% - 1.5rem));
  }

  .nav {
    display: none;
  }

  .hero h1 {
    max-width: none;
  }

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

  .folio-stage {
    cursor: default;
  }

  .work-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .folio.is-active .feature-slide.is-current img,
  .feature-slide img {
    transform: none !important;
  }
}
