/* Seceda — site styles */

:root {
  --ink: #0f2426;
  --ink-2: #1c3a3c;
  --teal: #2d6a66;
  --teal-soft: #d9e8e4;
  --sun: #f39419;
  --sun-deep: #e8711f;
  --paper: #faf8f4;
  --paper-2: #f1eee7;
  --text: #16292b;
  --muted: #56696a;
  --line: #dcd7cc;
  --card: #ffffff;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 36 38 / 0.06), 0 8px 24px -8px rgb(15 36 38 / 0.18);
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1c1e;
    --paper-2: #112729;
    --text: #e6eeec;
    --muted: #9fb3b1;
    --line: #25403f;
    --card: #14302f;
    --teal-soft: #1a3b3a;
    --teal: #7cc2b9;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -8px rgb(0 0 0 / 0.5);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--teal); text-underline-offset: 3px; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--sun);
  color: var(--ink);
  font-weight: 600;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun-deep);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: currentColor;
}

.lead { font-size: 1.2rem; line-height: 1.6; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--sun), var(--sun-deep));
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 6px 20px -8px rgb(232 113 31 / 0.7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgb(232 113 31 / 0.8); }

.btn-ghost {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.45);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgb(255 255 255 / 0.14); box-shadow: none; }

.btn-small { padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.btn-large { padding: 1.1rem 2rem; font-size: clamp(1.1rem, 2.4vw, 1.4rem); width: 100%; }

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgb(15 36 38 / 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.brand img { width: 44px; height: auto; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a:not(.btn) {
  color: rgb(255 255 255 / 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
.site-nav a:not(.btn):hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); background: #fff; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); background: #fff; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgb(15 36 38 / 0.97);
    backdrop-filter: blur(12px);
    padding: 0.5rem var(--gutter) 1.5rem;
    display: none;
  }
  .site-header.is-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a:not(.btn) {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
    font-size: 1.1rem;
  }
  .site-nav .btn { margin-top: 1.25rem; width: 100%; }
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  z-index: -2;
  animation: hero-zoom 18s ease-out both;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(15 36 38 / 0.55) 0%, rgb(15 36 38 / 0.15) 30%, rgb(15 36 38 / 0.55) 65%, rgb(15 36 38 / 0.96) 100%),
    linear-gradient(90deg, rgb(15 36 38 / 0.75) 0%, rgb(15 36 38 / 0) 70%);
}
@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-content {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.hero .eyebrow { color: var(--sun); }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 13ch;
  margin-bottom: 1.5rem;
}
.hero .lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  max-width: 38rem;
  color: rgb(255 255 255 / 0.85);
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.focus-strip {
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 1.4rem;
  padding-bottom: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgb(255 255 255 / 0.75);
}
.focus-strip li { display: flex; align-items: center; gap: 0.6rem; }
.focus-strip li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sun);
}

/* Sections */

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-tint { background: var(--paper-2); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-intro { color: var(--muted); font-size: 1.1rem; }

/* About */

.about-grid {
  display: grid;
  gap: 2rem 5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 5fr 6fr; align-items: start; }
}
.prose p:not(.lead) { color: var(--muted); }

/* Services */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service svg {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--teal-soft);
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1.25rem;
}
.service p { color: var(--muted); margin: 0; font-size: 1rem; }

.process {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--ink);
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.process-title { font-size: 1.1rem; color: var(--sun); margin-bottom: 1.5rem; }
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  counter-reset: step;
}
.process-steps li {
  color: rgb(255 255 255 / 0.72);
  font-size: 0.98rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.18);
}
.process-steps span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: rgb(255 255 255 / 0.45);
  margin-bottom: 0.4rem;
}
.process-steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

/* Projects */

.projects {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .projects { grid-template-columns: repeat(3, 1fr); } }

.project {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.project:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

@media (min-width: 640px) {
  .project-feature { grid-column: span 2; }
}
@media (min-width: 900px) {
  .project-feature { grid-row: span 2; }
  .project-feature .project-shot { flex: 1; }
  .project-feature .project-shot img { height: 100%; object-fit: cover; object-position: left top; }
  .project-feature h3 { font-size: 1.6rem; }
}

.project-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
}
.project-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
  transition: transform 0.5s ease;
}
.project:hover .project-shot img { transform: scale(1.03); }

.project-body { padding: 1.4rem 1.5rem 1.6rem; }
.project-body p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.project-body h3 { margin-bottom: 0.5rem; }

.tags {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tags li {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
}

/* Lightbox */

.lightbox {
  width: fit-content;
  max-width: 96vw;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  overflow: visible;
}
.lightbox::backdrop { background: rgb(8 20 22 / 0.85); backdrop-filter: blur(4px); }
.lightbox img { width: auto; max-width: 96vw; max-height: 92vh; object-fit: contain; border-radius: 12px; }
.lightbox-close {
  position: absolute;
  top: -0.75rem; right: -0.75rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--sun);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

/* Contact */

.contact {
  background:
    radial-gradient(60rem 30rem at 100% 0%, rgb(243 148 25 / 0.18), transparent 60%),
    var(--ink);
  color: #fff;
}
.contact .lead { color: rgb(255 255 255 / 0.78); max-width: 34rem; }
.contact-grid {
  display: grid;
  gap: 2.5rem 5rem;
  align-items: center;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 7fr 5fr; } }

.contact-card {
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.contact-card dl { margin: 1.75rem 0 0; display: grid; gap: 1.1rem; }
.contact-card dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(255 255 255 / 0.5);
  margin-bottom: 0.2rem;
}
.contact-card dd { margin: 0; color: rgb(255 255 255 / 0.9); }

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgb(255 255 255 / 0.55);
  font-size: 0.9rem;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
}
.footer-inner p { margin: 0; }
.site-footer a { color: rgb(255 255 255 / 0.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Reveal on scroll (only when JS has opted in) */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-bg { animation: none; }
}

.project-cta {
  justify-content: center;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: #fff;
  background:
    radial-gradient(24rem 16rem at 100% 100%, rgb(243 148 25 / 0.35), transparent 70%),
    var(--ink-2);
  border-color: transparent;
}
.project-cta h3 { font-size: 1.5rem; }
.project-cta p:not(.eyebrow) { color: rgb(255 255 255 / 0.72); font-size: 0.98rem; }
.project-cta .eyebrow { color: var(--sun); }
.project-cta-link { font-family: var(--font-display); font-weight: 600; color: var(--sun); margin-top: 0.5rem; }

@media (min-width: 900px) {
  .services { grid-template-columns: repeat(6, 1fr); }
  .service { grid-column: span 2; }
  .service:nth-last-child(-n + 2) { grid-column: span 3; }
}

@media (prefers-color-scheme: dark) {
  .process { background: var(--card); border: 1px solid var(--line); }
}
