:root {
  color-scheme: light;
  --bg: #f7f3ea;
  --ink: #1f2933;
  --muted: #5d6876;
  --line: #d9d2c4;
  --panel: #ffffff;
  --panel-soft: #ece5d8;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #d8f3ee;
  --focus: #2563eb;
  --shadow: 0 18px 50px rgba(31, 41, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  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;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 210, 196, 0.78);
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 11vw, 132px) clamp(18px, 4vw, 56px) clamp(42px, 8vw, 88px);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-text {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

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

.button.primary:hover {
  background: var(--accent-dark);
}

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

.button.secondary:hover {
  border-color: #b8ad9d;
  background: #ffffff;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 136px;
  padding: 20px;
  border-radius: 8px;
  background: var(--panel-soft);
}

.metric.wide {
  grid-column: 1 / -1;
}

.metric-value,
.metric-label {
  display: block;
}

.metric-value {
  color: var(--accent-dark);
  font-size: 2.15rem;
  font-weight: 850;
  line-height: 1;
}

.metric-label {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
}

.section,
.about-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(44px, 8vw, 92px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.project-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  overflow: hidden;
  background: #e4ddd0;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-media {
  background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
}

.poker-notes-media {
  background: linear-gradient(135deg, #fff7ed, #e0f2fe);
}

.app-icon {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 24px;
  background: #111827;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.2);
}

.poker-notes-icon {
  background: #3b2f2f;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  padding: 22px;
}

.project-type {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-body p:not(.project-type) {
  margin: 0;
  color: var(--muted);
}

.project-link {
  margin-top: auto;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.about-band {
  max-width: none;
  background: #1f2933;
  color: #ffffff;
}

.about-copy {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(0px, 4vw, 20px);
}

.about-band .eyebrow {
  color: var(--accent-soft);
}

.about-copy p:last-child {
  max-width: 720px;
  margin: 22px 0 0;
  color: #d8dee6;
  font-size: 1.12rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.contact-section .section-heading {
  display: block;
  margin: 0;
}

.contact-form {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  gap: 8px;
}

label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c9c0b2;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

input {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 156px;
  padding: 12px 14px;
  resize: vertical;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-message.error {
  color: #b42318;
}

.form-message.success {
  color: var(--accent-dark);
}

.submit-button {
  width: max-content;
}

.site-footer {
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.project-page,
.policy-placeholder {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 11vw, 132px) clamp(18px, 4vw, 56px);
}

.project-page {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.72fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  min-height: calc(100vh - 160px);
}

.project-page-copy {
  max-width: 720px;
}

.project-page-copy p:not(.eyebrow),
.policy-placeholder p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.project-page-image {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e4ddd0;
  box-shadow: var(--shadow);
}

.project-page-icon {
  justify-self: center;
  width: min(220px, 54vw);
  height: min(220px, 54vw);
  font-size: clamp(3rem, 14vw, 5rem);
}

@media (max-width: 900px) {
  .hero,
  .contact-section,
  .project-page {
    grid-template-columns: 1fr;
  }

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

  .project-media {
    height: clamp(180px, 45vw, 280px);
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .section-heading {
    display: block;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 112px;
  }

  .submit-button {
    width: 100%;
  }
}
