:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-soft: #eeede8;
  --ink: #111111;
  --muted: #5f625d;
  --line: #d9d7cf;
  --accent: #176b5f;
  --accent-ink: #ffffff;
  --warm: #b35c2e;
  --shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(20px, 5vw, 64px);
  background: rgba(246, 245, 241, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(246, 245, 241, 0.96);
  border-color: var(--line);
}

.brand {
  width: fit-content;
}

.brand-mark {
  width: clamp(150px, 17vw, 220px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.site-nav a,
.header-link {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
}

.site-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: var(--surface);
}

.header-link {
  justify-self: end;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}

.hero {
  position: relative;
  min-height: calc(100svh - 74px);
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: clamp(90px, 15vh, 160px) clamp(20px, 5vw, 64px) 34px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246, 245, 241, 0.98) 0%, rgba(246, 245, 241, 0.9) 44%, rgba(246, 245, 241, 0.58) 100%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  top: clamp(28px, 7vh, 78px);
  left: 0;
  right: 0;
  height: min(420px, 52%);
  background:
    url("assets/logoUltraFishPlus.png") 0 0 / 240px 240px repeat,
    url("assets/logoUltraFishPlus.png") 140px 82px / 360px 360px repeat;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.78) 56%, transparent 100%);
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
  animation: hero-background-drift 24s linear infinite;
}

@keyframes hero-background-drift {
  from {
    background-position: 0 0, 140px 82px;
  }

  to {
    background-position: 240px 0, 500px 82px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-content {
  padding-bottom: clamp(64px, 11vw, 120px);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 28px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.04;
  font-weight: 560;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  font-weight: 560;
}

h3 {
  font-size: 24px;
  line-height: 1.14;
  font-weight: 560;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: var(--ink);
  color: #ffffff;
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
}

.featured,
.directory,
.about {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 124px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 36px;
}

.featured-list {
  display: grid;
  gap: 18px;
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  min-height: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.featured-visual {
  display: grid;
  place-items: center;
  background: #ece8df;
  border-right: 1px solid var(--line);
}

.featured-visual img {
  width: min(210px, 48%);
}

.featured-visual-unsent {
  background: #e8f1ed;
}

.featured-visual-unsent img {
  width: min(150px, 36%);
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(28px, 5vw, 58px);
}

.featured-body h3 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 68px);
}

.featured-body p:not(.project-category) {
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
}

.project-category {
  margin-bottom: 14px;
  color: var(--warm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.directory-heading {
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
}

.filters {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-button.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 22px;
  min-height: 220px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.07);
}

.project-card.is-hidden {
  display: none;
}

.project-card img {
  align-self: start;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 14px;
  background: var(--surface-soft);
  border-radius: 8px;
}

.project-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.project-content h3 {
  margin-bottom: 12px;
}

.project-content p:not(.project-category) {
  color: var(--muted);
}

.text-link {
  width: fit-content;
  margin-top: auto;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: transform 180ms ease, color 180ms ease;
}

.about {
  border-top: 1px solid var(--line);
}

.about p:last-child {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(20px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
  font-size: 14px;
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .header-link {
    align-self: center;
  }

  .hero {
    min-height: 760px;
    padding-top: 76px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(246, 245, 241, 0.98) 0%, rgba(246, 245, 241, 0.88) 58%, rgba(246, 245, 241, 0.72) 100%);
  }

  .hero::after {
    top: 34px;
    height: 36%;
    opacity: 0.16;
  }

  .section-heading,
  .directory-heading,
  .featured-project {
    grid-template-columns: 1fr;
  }

  .featured-visual {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .filters {
    justify-content: flex-start;
  }

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

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
    min-height: 0;
    padding: 10px 18px 12px;
  }

  .brand-mark {
    width: 132px;
  }

  .header-link {
    font-size: 12px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    padding: 4px;
    overflow: visible;
    border-radius: 14px;
  }

  .site-nav a {
    padding: 8px 4px;
    text-align: center;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.2;
  }

  .hero {
    min-height: 720px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero::after {
    top: 26px;
    height: 30%;
    background-size: 170px 170px, 260px 260px;
  }

  h1 {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .featured,
  .directory,
  .about {
    width: min(calc(100% - 28px), var(--max));
  }

  .project-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .project-card img {
    padding: 9px;
  }

  .project-content h3 {
    font-size: 20px;
  }

  .filter-button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after {
    animation: none;
  }
}
