:root {
  --ink: #16201c;
  --paper: #f7f4ee;
  --accent: #b5653b;
  --muted: #6b746e;
  --line: #d9d5cd;
  --soft: #e9e4da;
  --white: #fff;
  --max: 1380px;
}


/* ========================================
   RESET
======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

body::selection {
  background: var(--accent);
  color: #fff;
}


/* ========================================
   SCROLL PROGRESS
======================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  z-index: 20;
}


/* ========================================
   HEADER
======================================== */

header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 max(6vw, calc((100vw - var(--max)) / 2));

  border-bottom: 1px solid var(--line);

  position: sticky;
  top: 0;

  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(14px);

  z-index: 10;
}

.brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: inherit;
  line-height: 1.15;
}

.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 5px;
}


/* ========================================
   NAVIGATION
======================================== */

nav {
  display: flex;
  gap: 28px;
}

nav a,
.actions a,
.cards a,
.insight-card a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}

nav a {
  position: relative;
  padding: 31px 0;
}

nav a::after {
  content: "";
  position: absolute;

  left: 0;
  right: 100%;
  bottom: 23px;

  height: 2px;

  background: var(--accent);

  transition: 0.25s;
}

nav a:hover::after,
nav a.active::after {
  right: 0;
}

#menu {
  display: none;
}


/* ========================================
   GENERAL SECTIONS
======================================== */

section {
  padding: 110px max(8vw, calc((100vw - var(--max)) / 2));
}

.section-head {
  max-width: 1050px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 18px;
}


/* ========================================
   TYPOGRAPHY
======================================== */

h1,
h2 {
  font-family: Georgia, serif;
  line-height: 1.01;
  margin: 0.2em 0 0.35em;
  font-weight: 500;
}

h1 {
  font-size: clamp(60px, 7.7vw, 118px);
  letter-spacing: -0.06em;
  max-width: 900px;
}

h2 {
  font-size: clamp(42px, 5.2vw, 76px);
  letter-spacing: -0.045em;
}

h3 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0.5em 0;
}

em {
  color: var(--accent);
  font-weight: 400;
}

.lead {
  font-size: clamp(20px, 2vw, 28px);
  max-width: 760px;
  line-height: 1.4;
}

.narrow {
  max-width: 690px;
}


/* ========================================
   HERO
======================================== */

.hero {
  min-height: calc(100vh - 86px);

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.82fr);

  gap: 60px;

  align-items: center;

  padding-top: 70px;
  padding-bottom: 70px;
}

.hero-copy {
  min-width: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 700px;
}


/* ========================================
   HERO ACTIONS
======================================== */

.actions {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 34px;
}

.primary {
  display: inline-block;

  background: var(--ink);
  color: white !important;

  padding: 15px 23px;

  text-decoration: none;
  font-weight: 700;

  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22, 32, 28, 0.15);
}

.text-link span {
  display: inline-block;
  transition: transform 0.2s;
}

.text-link:hover span {
  transform: translateX(5px);
}

.mini-proof {
  display: flex;
  gap: 30px;

  margin-top: 52px;
  padding-top: 20px;

  border-top: 1px solid var(--line);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;

  color: var(--muted);
}


/* ========================================
   HERO PORTRAIT
======================================== */

.portrait-wrap {
  position: relative;

  width: 100%;
  min-width: 0;

  justify-self: end;
}

.photo {
  width: 100%;
  height: 620px;

  overflow: hidden;

  background: #000;

  box-shadow: 18px 18px 0 rgba(181, 101, 59, 0.12);
}

.photo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  /*
    The original image has empty space on the left
    and Mathushangar on the right.
  */
  object-position: right center;
}

.portrait-note {
  position: absolute;

  left: -35px;
  bottom: 30px;

  width: 245px;

  padding: 22px;

  background: var(--paper);

  border: 1px solid var(--line);

  z-index: 2;
}

.portrait-note small {
  display: block;

  color: var(--accent);

  font-weight: 800;
  letter-spacing: 0.15em;

  margin-bottom: 8px;
}

.portrait-note strong {
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.3;
}


/* ========================================
   DARK SECTION
======================================== */

.dark {
  background: var(--ink);
  color: #f8f4ec;
}

.dark .eyebrow {
  color: #d98a5e;
}

.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 9vw;

  font-size: 19px;

  margin-top: 42px;
}

.dark blockquote,
.impact blockquote {
  font-family: Georgia, serif;

  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.25;

  margin: 35px 0;

  border-left: 3px solid var(--accent);

  padding-left: 25px;
}


/* ========================================
   CARDS
======================================== */

.cards {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1px;

  background: var(--line);

  margin-top: 55px;

  border: 1px solid var(--line);
}

.cards article {
  background: var(--paper);

  padding: 40px;

  transition:
    transform 0.25s,
    background 0.25s;
}

.cards article:hover {
  background: #fff;

  transform: translateY(-6px);

  z-index: 1;
}

.cards b {
  color: var(--accent);
}

.cards a {
  font-weight: 700;
}

.quote {
  font-family: Georgia, serif;
  font-size: 19px;
  min-height: 90px;
}


/* ========================================
   IKIGAI
======================================== */

.ikigai {
  background: var(--soft);
}

.grid4 {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 1px;

  background: #cfc8bb;

  margin-top: 50px;
}

.grid4 div {
  background: var(--soft);

  padding: 35px;

  transition: background 0.2s;
}

.grid4 div:hover {
  background: #f1ece3;
}

.grid4 small {
  display: block;

  color: var(--accent);

  font-weight: bold;
  letter-spacing: 0.1em;

  margin-bottom: 10px;
}

.grid4 strong {
  font-family: Georgia, serif;

  font-size: 24px;
  line-height: 1.3;
}


/* ========================================
   TIMELINE
======================================== */

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

  margin-top: 55px;
}

.timeline > div {
  display: grid;

  grid-template-columns: 150px 1fr 1.5fr;

  gap: 30px;

  padding: 34px 0;

  border-bottom: 1px solid var(--line);

  transition: padding 0.2s;
}

.timeline > div:hover {
  padding-left: 12px;
}

.timeline b {
  color: var(--accent);
}

.timeline h3,
.timeline p {
  margin: 0;
}


/* ========================================
   IMPACT
======================================== */

.impact {
  background: white;
}

.impact .section-head > p:not(.eyebrow) {
  max-width: 800px;
  font-size: 20px;
}

.stats {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 24px;

  margin: 60px 0;
}

.stats div {
  border-top: 2px solid var(--ink);

  padding-top: 18px;
}

.stats strong {
  display: block;

  font-family: Georgia, serif;

  font-size: 52px;
  font-weight: 500;
}

.stats span {
  font-size: 14px;
}


/* ========================================
   FILTERS
======================================== */

.filters {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin: 36px 0 30px;
}

.filters button {
  font: inherit;

  font-size: 13px;

  border: 1px solid var(--line);

  background: transparent;

  padding: 9px 17px;

  border-radius: 30px;

  cursor: pointer;
}

.filters button.selected,
.filters button:hover {
  background: var(--ink);

  border-color: var(--ink);

  color: #fff;
}


/* ========================================
   INSIGHTS
======================================== */

.insight-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;
}

.insight-card {
  border: 1px solid var(--line);

  padding: 32px;

  background: #fff;

  min-height: 285px;

  display: flex;
  flex-direction: column;
}

.insight-card[hidden] {
  display: none;
}

.insight-card small {
  color: var(--accent);

  font-weight: 800;
  letter-spacing: 0.08em;
}

.insight-card p {
  color: var(--muted);
}

.insight-card a {
  margin-top: auto;
  font-weight: 700;
}


/* ========================================
   CONTACT
======================================== */

.connect {
  text-align: left;

  background: var(--ink);

  color: var(--white);
}

.connect .eyebrow {
  color: #d98a5e;
}

.connect h2,
.connect p {
  margin-left: 0;
  margin-right: 0;
}

.connect h2 em {
  color: #d98a5e;
}


/* Contact intro */

.connect-intro {
  width: 100%;
  max-width: 900px;

  margin: 0 0 55px;
}

.connect-intro h2 {
  max-width: 900px;
}

.connect-intro .lead {
  max-width: 780px;

  color: #d8ddd9;
}


/* Contact layout */

.contact-layout {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(280px, 0.8fr)
    minmax(0, 1.2fr);

  gap: 70px;

  align-items: start;

  padding-top: 45px;

  border-top: 1px solid rgba(255, 255, 255, 0.18);
}


/* Left contact column */

.contact-copy {
  width: 100%;
  max-width: 450px;
}

.contact-kicker {
  display: block;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.18em;

  color: #d98a5e;

  margin-bottom: 10px;
}

.contact-copy h3 {
  font-family: Georgia, serif;

  font-size: clamp(30px, 3vw, 44px);

  font-weight: 500;
  line-height: 1.15;

  margin: 0 0 18px;
}

.contact-copy p {
  margin: 0;

  color: #c9cfcb;
}

.contact-note {
  padding-top: 20px;

  margin-top: 24px;

  border-top: 1px solid rgba(255, 255, 255, 0.14);
}


/* Contact cards */

.contact-options {
  width: 100%;

  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 14px;
}

.contact-card {
  position: relative;

  width: 100%;
  min-width: 0;

  min-height: 160px;

  padding: 25px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  border: 1px solid rgba(255, 255, 255, 0.18);

  color: #fff;

  text-decoration: none;

  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;
}

.contact-card:hover {
  transform: translateY(-4px);

  background: rgba(255, 255, 255, 0.07);

  border-color: rgba(255, 255, 255, 0.42);
}

.contact-label {
  position: absolute;

  top: 22px;
  left: 25px;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.16em;

  color: #d98a5e;
}

.contact-card strong {
  display: block;

  max-width: calc(100% - 35px);

  font-size: 15px;
  line-height: 1.4;

  overflow-wrap: anywhere;
}

.contact-arrow {
  position: absolute;

  right: 22px;
  bottom: 22px;

  font-size: 20px;

  transition: transform 0.2s;
}

.contact-card:hover .contact-arrow {
  transform: translate(3px, -3px);
}


/* ========================================
   FOOTER
======================================== */

.site-footer {
  display: block;

  padding: 0 max(6vw, calc((100vw - var(--max)) / 2));

  background: #111814;

  color: #eef1ee;

  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main {
  display: grid;

  grid-template-columns: 2fr 1fr 1fr;

  gap: 70px;

  padding: 64px 0 52px;
}

.footer-brand a {
  color: #fff;

  text-decoration: none;

  font-weight: 800;

  letter-spacing: 0.1em;

  font-size: 17px;
}

.footer-brand p {
  max-width: 410px;

  margin: 18px 0 0;

  color: #aeb7b1;

  font-family: Georgia, serif;

  font-size: 20px;

  line-height: 1.5;
}

.footer-nav {
  display: flex;

  flex-direction: column;

  gap: 10px;
}

.footer-nav span {
  color: #d98a5e;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 0.16em;

  margin-bottom: 5px;
}

.footer-nav a {
  color: #d9dfdb;

  text-decoration: none;

  width: max-content;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;

  justify-content: space-between;

  gap: 25px;

  align-items: center;

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  padding: 22px 0 28px;

  color: #89938d;

  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom #year {
  display: inline;
}

.footer-bottom a {
  color: #b8c0bb;

  text-decoration: none;
}


/* ========================================
   REVEAL ANIMATION
======================================== */

.reveal {
  opacity: 0;

  transform: translateY(24px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;

  transform: none;
}


/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;

    transform: none;

    transition: none;
  }

  * {
    animation: none !important;

    transition: none !important;
  }
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1000px) {

  header {
    height: 70px;

    padding: 0 6vw;
  }

  #menu {
    display: block;

    background: none;

    border: 1px solid var(--line);

    padding: 8px 12px;

    font-weight: bold;
  }

  nav {
    display: none;

    position: absolute;

    top: 70px;
    left: 0;
    right: 0;

    background: var(--paper);

    padding: 22px 6vw 30px;

    flex-direction: column;

    border-bottom: 1px solid var(--line);

    gap: 5px;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 9px 0;
  }

  nav a::after {
    bottom: 4px;

    width: 35px;

    right: auto;
  }


  /* Hero */

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

    gap: 50px;

    min-height: auto;
  }

  .portrait-wrap {
    width: 100%;

    max-width: 700px;

    margin: 0 auto;

    justify-self: center;
  }

  .photo {
    width: 100%;

    height: auto;

    aspect-ratio: 4 / 3;
  }

  .photo img {
    object-position: right center;
  }

  .portrait-note {
    left: 20px;
  }


  /* Main grids */

  .twocol,
  .cards,
  .grid4,
  .stats,
  .insight-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline > div {
    grid-template-columns: 100px 1fr;
  }

  .timeline > div p {
    grid-column: 2;
  }

  .quote {
    min-height: auto;
  }


  /* Contact */

  .contact-layout {
    grid-template-columns: 1fr;

    gap: 45px;
  }

  .contact-copy {
    max-width: 650px;
  }


  /* Footer */

  .footer-main {
    grid-template-columns: 1.5fr 1fr 1fr;

    gap: 35px;
  }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 620px) {

  section {
    padding: 72px 6vw;
  }


  /* Hero */

  .hero {
    display: block;

    padding-top: 50px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: clamp(52px, 17vw, 78px);
  }

  .portrait-wrap {
    margin-top: 45px;
  }

  .photo {
    width: 100%;

    height: auto;

    aspect-ratio: 4 / 4.5;
  }

  .photo img {
    object-position: right center;
  }

  .portrait-note {
    position: relative;

    left: auto;
    bottom: auto;

    width: 100%;

    margin-top: 14px;
  }


  /* Hero proof */

  .mini-proof {
    flex-direction: column;

    gap: 7px;
  }

  .actions {
    align-items: flex-start;

    flex-direction: column;
  }

  .centered {
    align-items: center;
  }


  /* General grids */

  .twocol,
  .cards,
  .grid4,
  .stats,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .timeline > div {
    grid-template-columns: 1fr;

    gap: 8px;
  }

  .timeline > div p {
    grid-column: auto;
  }

  .stats {
    gap: 35px;
  }


  /* Contact */

  .connect-intro {
    margin-bottom: 40px;
  }

  .contact-layout {
    display: block;

    padding-top: 35px;
  }

  .contact-copy {
    max-width: none;

    margin-bottom: 40px;
  }

  .contact-options {
    grid-template-columns: 1fr;

    gap: 12px;
  }

  .contact-card {
    min-height: 135px;
  }


  /* Footer */

  .footer-main {
    grid-template-columns: 1fr;

    gap: 35px;

    padding: 48px 0 38px;
  }

  .footer-bottom {
    flex-direction: column;

    align-items: flex-start;
  }

  .site-footer {
    padding-left: 6vw;

    padding-right: 6vw;
  }
}
