:root {
  --bg: #eceae7;
  --hero: #d7d3cf;
  --paper: #f8f7f4;
  --ink: #1a1918;
  --muted: #5c5955;
  --line: rgba(26, 25, 24, 0.72);
  --soft-line: rgba(26, 25, 24, 0.28);
  --yellow: #fffbcf;
  --mint: #e7f8ef;
  --blue: #e1f3fb;
  --lavender: #e6e4ff;
  --max: 1760px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 72px), var(--max));
  margin: 0 auto;
  padding-top: 30px;
}

.brand-block,
.connect-block,
.nav-pills a {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1;
}

.brand-block {
  justify-self: start;
  padding: 16px 22px 17px;
  background: var(--yellow);
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-pills a {
  min-width: 126px;
  padding: 14px 24px 15px;
  text-align: center;
  background: var(--mint);
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-pills a:hover {
  transform: translateY(-2px);
  background: #d7f2e3;
}

.connect-block {
  justify-self: end;
  padding: 16px 28px 17px;
  background: var(--blue);
  transition: transform 180ms ease;
}

.connect-block:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 1020px;
  overflow: hidden;
  background: var(--hero);
  padding: 152px 40px 90px;
}

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  margin-bottom: 24px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero h1 {
  margin-bottom: 38px;
  font-family: var(--serif);
  font-size: clamp(5rem, 8.6vw, 9.3rem);
  font-weight: 500;
  line-height: 0.74;
  letter-spacing: -0.045em;
}

.hero-intro {
  max-width: 610px;
  margin: 0 auto 46px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.08;
}

.work-link {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 14px 20px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.work-link span:last-child {
  font-family: var(--sans);
  font-size: 1.55rem;
  transition: transform 180ms ease;
}

.work-link:hover span:last-child {
  transform: translateX(6px);
}

.section-pad {
  width: min(calc(100% - 56px), var(--max));
  margin: 0 auto;
  padding: 138px 0;
}

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 8vw;
  min-height: 760px;
  align-items: center;
}

.about-lead h2 {
  max-width: 760px;
  margin-bottom: 30px;
  font-family: var(--serif);
  font-size: clamp(3.3rem, 5vw, 6rem);
  font-weight: 500;
  line-height: 0.93;
  letter-spacing: -0.035em;
}

.about-lead p {
  max-width: 660px;
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.24;
}

.profile-panel {
  align-self: center;
}

.profile-panel h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
}

.profile-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 17px 0;
  border-top: 1px dashed var(--line);
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.2;
}

.profile-row:last-child {
  border-bottom: 1px dashed var(--line);
}

.profile-label {
  font-weight: 600;
}

.profile-value {
  text-align: right;
}

.portfolio {
  padding-top: 82px;
}

.portfolio-heading {
  margin-bottom: 44px;
}

.section-eyebrow {
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.portfolio-heading h2,
.process-heading h2,
.strengths > h2,
.contact h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.portfolio-heading h2 {
  margin-bottom: 0;
  font-size: clamp(4rem, 6vw, 7rem);
  line-height: 0.9;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  min-width: 0;
}

.project-visual {
  position: relative;
  display: block;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  border: 1px solid rgba(26, 25, 24, 0.14);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-visual::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.project-visual::after {
  content: "↗";
  position: absolute;
  right: 18px;
  top: 12px;
  z-index: 5;
  font-size: 1.6rem;
  transition: transform 180ms ease;
}

.project-visual:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(26, 25, 24, 0.08);
}

.project-visual:hover::after {
  transform: translate(5px, -5px);
}

.visual-caption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 5;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ethico-visual {
  background: #91cde3;
}

.ethico-phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40%;
  height: 70%;
  padding: 26px 22px;
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: #f5f3ed;
  transform: translate(-50%, -50%) rotate(-3deg);
  box-shadow: 12px 16px 0 rgba(26, 25, 24, 0.1);
  transition: transform 220ms ease;
}

.ethico-visual:hover .ethico-phone {
  transform: translate(-50%, -51%) rotate(-2deg);
}

.phone-bar {
  width: 35%;
  height: 5px;
  margin: 0 auto 34px;
  border-radius: 999px;
  background: var(--ink);
}

.ethico-wordmark {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 3.6rem);
  font-weight: 600;
  text-align: center;
}

.barcode {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  height: 92px;
  margin: 0 auto 30px;
}

.barcode i {
  display: block;
  width: 5px;
  background: var(--ink);
}

.barcode i:nth-child(2),
.barcode i:nth-child(5),
.barcode i:nth-child(8) { width: 11px; }

.barcode i:nth-child(4),
.barcode i:nth-child(7) { height: 78%; }

.phone-copy {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.12em;
  text-align: center;
}

.ethico-orbit {
  position: absolute;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.orbit-one {
  left: 10%;
  top: 16%;
  transform: rotate(-9deg);
}

.orbit-two {
  right: 9%;
  bottom: 17%;
  background: var(--mint);
  transform: rotate(7deg);
}

.wendler-visual {
  background: #dde0ff;
}

.plate {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #f8f5ed;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 14px rgba(26, 25, 24, 0.06);
}

.plate::after {
  content: "";
  position: absolute;
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: var(--ink);
}

.plate span {
  position: relative;
  z-index: 2;
  transform: translateY(-43px);
}

.plate-one {
  width: 232px;
  height: 232px;
  left: 9%;
  top: 13%;
}

.plate-two {
  width: 194px;
  height: 194px;
  right: 7%;
  top: 11%;
  background: var(--yellow);
}

.plate-three {
  width: 172px;
  height: 172px;
  left: 20%;
  bottom: 5%;
  background: var(--mint);
}

.terminal-card {
  position: absolute;
  right: 9%;
  bottom: 9%;
  width: 46%;
  min-height: 40%;
  padding: 22px;
  background: #181818;
  color: #f8f7f1;
  border: 1px solid #181818;
  transform: rotate(2deg);
  box-shadow: 12px 14px 0 rgba(26, 25, 24, 0.1);
  transition: transform 220ms ease;
}

.wendler-visual:hover .terminal-card {
  transform: rotate(1deg) translateY(-3px);
}

.terminal-head {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.terminal-line {
  margin: 9px 0;
  font-family: monospace;
  font-size: 0.85rem;
}

.accent-line {
  color: #fff59d;
}

.project-copy {
  min-height: 156px;
  padding: 24px 4px 38px;
}

.project-copy > p {
  max-width: 710px;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.22;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 13px;
  border-top: 1px dashed var(--soft-line);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.project-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  align-self: flex-start;
  white-space: nowrap;
}

.process {
  max-width: 980px;
  text-align: center;
}

.process-heading {
  margin-bottom: 82px;
}

.process-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(3.7rem, 5.6vw, 6.5rem);
  line-height: 0.88;
}

.process-heading p {
  max-width: 650px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.2;
}

.process-list article {
  padding: 30px 0 36px;
  border-bottom: 1px dashed var(--line);
}

.process-list article:first-child {
  border-top: 1px dashed var(--line);
}

.process-list h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: 500;
}

.process-list p {
  max-width: 660px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.25;
}

.strengths {
  padding-top: 84px;
}

.strengths > h2 {
  max-width: 900px;
  margin: 0 auto 46px;
  text-align: center;
  font-size: clamp(3.8rem, 5vw, 5.8rem);
  line-height: 0.92;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.strength-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 44px;
  background: var(--paper);
  text-align: center;
}

.strength-number {
  margin-bottom: 48px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
}

.strength-card p {
  margin-bottom: 40px;
  font-family: var(--serif);
  font-size: 1.48rem;
  line-height: 1.18;
}

.highlight {
  display: inline-block;
  padding: 2px 14px 4px;
  background: var(--yellow);
  font-family: var(--serif);
  font-size: 1.16rem;
}

.contact {
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact h2 {
  margin-bottom: 64px;
  font-size: clamp(4.1rem, 6.2vw, 7.2rem);
  line-height: 0.84;
}

/* In-flow folios: the centre card stays above the two exposed corner titles. */
.contact-stack {
  display: grid;
  grid-template-columns: repeat(26, minmax(0, 1fr));
  align-items: start;
  isolation: isolate;
  width: min(calc(100% - 24px), 544px);
  padding-block: 24px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.mini-card {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vw, 14px);
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1.08;
  padding: clamp(12px, 2.4vw, 22px);
  border: 1px solid rgba(27, 27, 26, 0.2);
  border-radius: 3px;
  box-shadow:
    0 2px 3px rgba(27, 27, 26, 0.04),
    0 18px 30px -20px rgba(27, 27, 26, 0.36);
}

.mini-art {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 0;
}

.mini-title {
  flex: none;
  padding-top: 8px;
  border-top: 1px solid currentColor;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 3.8vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.mini-one {
  z-index: 1;
  grid-column: 1 / 13;
  margin-top: clamp(48px, 7vw, 76px);
  background: #252524;
  color: var(--paper);
  transform: rotate(-10deg);
}

.mini-two {
  z-index: 3;
  grid-column: 8 / 20;
  background: var(--lavender);
  color: var(--ink);
  transform: rotate(2deg);
}

.mini-two .mini-title {
  padding-top: 0;
  padding-bottom: 8px;
  border-top: 0;
  border-bottom: 1px solid currentColor;
}

.mini-three {
  z-index: 2;
  grid-column: 15 / 27;
  margin-top: clamp(50px, 6.8vw, 72px);
  background: var(--blue);
  color: var(--ink);
  transform: rotate(9deg);
}

.mini-three .mini-title {
  text-align: right;
}

.email-chip {
  padding: 10px 18px;
  min-height: 44px;
  background: var(--yellow);
  font-family: var(--serif);
  font-size: 1.22rem;
}

.site-footer {
  width: min(calc(100% - 56px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--soft-line);
  font-family: var(--serif);
  font-size: 1.03rem;
}

.footer-links {
  display: flex;
  gap: 34px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-note {
  text-align: right;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-pills {
    display: none;
  }

  .hero {
    min-height: 930px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .about-lead,
  .profile-panel {
    max-width: 850px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .project-visual {
    aspect-ratio: 1.4 / 1;
  }

  .strength-grid {
    grid-template-columns: 1fr;
  }

  .strength-card {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: min(calc(100% - 28px), var(--max));
    padding-top: 16px;
  }

  .brand-block,
  .connect-block {
    padding: 12px 15px 13px;
    font-size: 1rem;
  }

  .hero {
    min-height: 845px;
    padding: 118px 18px 54px;
  }

  .hero h1 {
    font-size: clamp(4rem, 18vw, 6.8rem);
    line-height: 0.79;
  }

  .hero-intro {
    max-width: 470px;
    margin-bottom: 40px;
    font-size: 1.32rem;
  }

  .section-pad {
    width: min(calc(100% - 28px), var(--max));
    padding: 92px 0;
  }

  .about {
    min-height: auto;
  }

  .about-lead h2 {
    font-size: clamp(3rem, 13vw, 4.7rem);
  }

  .about-lead p {
    font-size: 1.22rem;
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 1.15rem;
  }

  .profile-value {
    text-align: left;
    color: var(--muted);
  }

  .portfolio-heading h2,
  .process-heading h2,
  .strengths > h2 {
    font-size: clamp(3.2rem, 13vw, 4.8rem);
  }

  .project-visual {
    aspect-ratio: 1 / 1;
  }

  .ethico-phone {
    width: 50%;
    height: 68%;
  }

  .ethico-orbit {
    width: 76px;
    height: 76px;
  }

  .plate-one {
    width: 162px;
    height: 162px;
  }

  .plate-two {
    width: 138px;
    height: 138px;
  }

  .plate-three {
    width: 124px;
    height: 124px;
  }

  .plate span {
    transform: translateY(-31px);
    font-size: 2.2rem;
  }

  .terminal-card {
    width: 56%;
  }

  .project-meta {
    flex-direction: column;
    gap: 8px;
  }

  .strength-card {
    min-height: 0;
    padding: 46px 30px;
  }

  .strength-number {
    margin-bottom: 32px;
  }

  .strength-card p {
    font-size: 1.32rem;
  }

  .contact {
    min-height: 620px;
  }

  .contact h2 {
    margin-bottom: 54px;
    font-size: clamp(3.3rem, 14vw, 5.2rem);
  }

  .site-footer {
    width: min(calc(100% - 28px), var(--max));
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.96rem;
  }

  .footer-links {
    gap: 22px;
    flex-wrap: wrap;
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .connect-block {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 780px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 18vw, 5.3rem);
  }

  .hero-kicker {
    font-size: 0.68rem;
  }

  .work-link {
    font-size: 1.12rem;
  }

  .project-copy > p {
    font-size: 1.15rem;
  }

  .ethico-phone {
    width: 58%;
  }

}
