/* Fonts */
@font-face {
  font-family: "Brittany Signature";
  src: url("../assets/fonts/brittany-signature.woff2") format("woff2"), url("../assets/fonts/brittany-signature.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

/* Design tokens */
:root {
  --teal: #356B75;
  --deep-teal: #214B53;
  --mist-blue: #D7E4E7;
  --soft-blue: #BDD0D5;
  --warm-cream: #F2E9DE;
  --sarah-coral: #C77A66;
  --soft-white: #FFFDF9;
  --editorial-taupe: #C8B8A8;
  --text-main: #26454d;
  --line-soft: rgba(33, 75, 83, 0.14);
  --paper: #faf7f1;
  --font-serif: "Times New Roman", Times, serif;
  --font-sans: "Instrument Sans", Arial, sans-serif;
  --font-script: "Brittany Signature", cursive;
  --container: 1200px;
  --pill: 999px;
  --ease: 240ms ease;
}

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--text-main); background: var(--paper); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { border: 0; color: inherit; background: none; font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; }
::selection { color: var(--deep-teal); background: var(--soft-blue); }
[hidden] { display: none !important; }
.work-container { width: min(calc(100% - 56px), var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 100; padding: 12px 20px; color: var(--soft-white); background: var(--deep-teal); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Shared controls */
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 16px; padding: 11px 30px; border: 1px solid var(--teal); border-radius: var(--pill); font-size: 13px; font-weight: 600; line-height: 1; transition: color var(--ease), background-color var(--ease), border-color var(--ease); }
.button-primary { min-width: 158px; color: var(--soft-white); background: var(--teal); }
.button-outline { min-width: 210px; color: var(--deep-teal); background: var(--soft-white); }
.arrow { display: inline-block; font-family: Arial, sans-serif; font-size: 21px; font-weight: 400; line-height: .7; transition: transform var(--ease); }
@media (hover: hover) {
  .button-primary:hover { background: var(--deep-teal); border-color: var(--deep-teal); }
  .button-outline:hover { color: var(--soft-white); background: var(--teal); }
  a:hover .arrow, button:hover .arrow, .project-card:hover .arrow { transform: translateX(4px); }
}

/* Header */
.work-header { position: relative; z-index: 10; background: var(--soft-white); }
.header-inner { display: flex; min-height: clamp(64px, 5.4vw, 80px); align-items: center; justify-content: space-between; gap: 30px; width: min(92%, 1360px); }
.wordmark { display: flex; align-items: center; gap: 18px; color: var(--teal); font-family: var(--font-serif); font-size: clamp(36px, 3.3vw, 48px); font-weight: 700; line-height: 1; letter-spacing: -.035em; }
.brand-star { display: inline-block; font-size: .8em; font-weight: 400; transition: color 250ms ease, transform 250ms ease; }
.main-nav { display: flex; align-items: center; gap: clamp(25px, 4.2vw, 60px); margin-left: 4%; }
.main-nav a { position: relative; display: inline-flex; min-height: 44px; align-items: center; color: var(--deep-teal); font-size: clamp(12px, 1vw, 14px); }
.main-nav a::after { content: ""; position: absolute; right: -3px; bottom: 7px; left: -3px; height: 1px; background: var(--teal); transform: scaleX(0); transition: transform var(--ease); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.menu-toggle { display: none; }
@media (hover: hover) { .wordmark:hover .brand-star { color: var(--sarah-coral); transform: rotate(12deg) scale(1.12); } }

/* Hero */
.work-hero { position: relative; overflow: hidden; min-height: clamp(500px, 46vw, 650px); background: var(--mist-blue); }
.work-hero::after { content: ""; position: absolute; z-index: 3; left: -6%; bottom: -45px; width: 81%; height: 92px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--paper); }
.work-hero-inner { display: grid; min-height: inherit; grid-template-columns: 45% 55%; align-items: center; }
.work-hero-copy { position: relative; z-index: 4; padding: 44px 4% 74px 0; }
.eyebrow { color: var(--teal); font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .25em; text-transform: uppercase; }
.eyebrow span { font-family: var(--font-serif); font-size: 1.2em; letter-spacing: 0; }
.work-hero h1 { margin: 18px 0 26px; font-size: clamp(54px, 5.1vw, 76px); line-height: .91; letter-spacing: -.045em; }
.work-hero h1 em { font-weight: 400; }
.work-hero-text { max-width: 410px; font-size: clamp(15px, 1.25vw, 18px); font-weight: 400; line-height: 1.45; letter-spacing: -.01em; }
.work-hero-visual { position: absolute; inset: 0 0 0 52%; overflow: hidden; border-radius: 30% 0 0 40% / 48% 0 0 42%; background: #d8c9b6; z-index: 999; }
.work-hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 51% center; }
.hero-note { position: absolute; top: 26%; left: 4%; color: var(--sarah-coral); font-family: var(--font-script); font-size: clamp(24px, 2.4vw, 35px); line-height: 1.12; text-align: center; transform: rotate(-12deg); }

/* Filters and project grid */
.portfolio-section { position: relative; isolation: isolate; overflow: hidden; padding: 0 0 clamp(92px, 10vw, 142px); background: var(--paper); }
.portfolio-inner { position: relative; z-index: 2; }
.filter-bar { display: grid; grid-template-columns: repeat(5, auto) 1fr; min-height: 90px; align-items: center; gap: clamp(20px, 5vw, 72px); padding-inline: 22px; border-bottom: 1px solid var(--line-soft); }
.filter-button { min-width: 88px; min-height: 42px; padding: 10px 15px; border-radius: var(--pill); color: var(--deep-teal); font-size: 12px; transition: color var(--ease), background-color var(--ease); }
.filter-button.is-active { color: var(--soft-white); background: var(--teal); }
.filter-arrow { justify-self: end; color: var(--teal); font-size: 24px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 42px); padding: clamp(34px, 4vw, 54px) 22px 0; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line-soft); background: var(--soft-white); box-shadow: 0 3px 15px transparent; transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease), opacity var(--ease); }
.project-image { overflow: hidden; background: var(--warm-cream); }
.project-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 400ms ease; }
.project-meta { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--line-soft); }
.project-meta h3 { font-family: var(--font-sans); font-size: 16px; font-weight: 600; line-height: 1.15; }
.project-meta p { margin-top: 5px; color: var(--teal); font-size: 9px; font-weight: 600; line-height: 1.2; letter-spacing: .2em; text-transform: uppercase; }
.project-meta .arrow { flex: none; color: var(--teal); }
@media (hover: hover) {
  .project-card:hover { border-color: rgba(33, 75, 83, .24); box-shadow: 0 8px 24px rgba(33, 75, 83, .07); transform: translateY(-3px); }
  .project-card:hover .project-image img { transform: scale(1.018); }
  .filter-button:not(.is-active):hover { background: rgba(189, 208, 213, .35); }
}
.empty-state { margin: 60px auto 0; text-align: center; font-family: var(--font-serif); font-size: 25px; }
.portfolio-cta { display: flex; justify-content: center; padding-top: clamp(44px, 5.5vw, 76px); }
.portfolio-leaf {
  position: absolute;
  z-index: 0;
  width: clamp(255px, 29vw, 440px);
  max-width: none;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 62%, rgba(0, 0, 0, .72) 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at center, #000 62%, rgba(0, 0, 0, .72) 78%, transparent 100%);
}
/* Decorative botanicals supplied for the portfolio mockup. */
.portfolio-leaf-left { bottom: -10%; left: -11%; }
.portfolio-leaf-right { top: 34%; right: -13%; }

/* Footer — shared site treatment */
.work-footer { --wave-height: 44px; position: relative; isolation: isolate; color: var(--soft-white); background: var(--teal); padding: 21px 0 18px; }
.work-footer::before { content: ""; position: absolute; z-index: -1; inset: calc(-1 * var(--wave-height)) 0 0; background: var(--teal) url("../assets/images/footer-botanical-background.png") center / cover no-repeat; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 0C170 37 224 49 401 21S734 31 958 42 1280 43 1440 0V70H0Z'/%3E%3C/svg%3E"), linear-gradient(#000,#000); -webkit-mask-position: top,bottom; -webkit-mask-size: 100% calc(var(--wave-height) + 1px),100% calc(100% - var(--wave-height)); -webkit-mask-repeat: no-repeat; mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 0C170 37 224 49 401 21S734 31 958 42 1280 43 1440 0V70H0Z'/%3E%3C/svg%3E"), linear-gradient(#000,#000); mask-position: top,bottom; mask-size: 100% calc(var(--wave-height) + 1px),100% calc(100% - var(--wave-height)); mask-repeat: no-repeat; }
.footer-inner { position: relative; z-index: 1; width: min(90.5%, 1340px); }
.footer-cta { display: flex; align-items: center; justify-content: center; gap: 30px; padding: 0 0 14px 10%; }
.footer-cta h2 { font-family: var(--font-serif); font-size: clamp(27px, 2.5vw, 36px); font-weight: 400; line-height: 1.04; letter-spacing: -.025em; }
.footer-cta h2 > span { padding-left: 16px; }.footer-cta h2 b { padding-left: 7px; font-size: .85em; font-weight: 400; }
.footer-cta > p { padding: 7px 0 7px 24px; border-left: 1px solid #92afb5; font-size: clamp(12px, 1vw, 15px); line-height: 1.4; }.footer-cta > .button { margin-left: 25px; }
.button-light { color: var(--deep-teal); background: var(--paper); border-color: var(--paper); }
.footer-bottom { display: flex; align-items: center; gap: 26px; }.footer-wordmark { font-family: var(--font-serif); font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }.footer-tagline { font-family: var(--font-sans); font-size: clamp(11px, .95vw, 14px); font-weight: 400; line-height: 1.45; letter-spacing: -.01em; }.footer-separator { display: inline-block; margin-right: 14px; font-family: var(--font-serif); font-size: .8em; line-height: 1; }
.footer-social { display: flex; gap: 2px; margin-left: auto; }.footer-social a { display: grid; width: 44px; height: 44px; place-items: center; }.footer-social svg { width: 22px; height: 22px; }.footer-note { padding-left: 28px; border-left: 1px solid #92afb5; color: #e1e8e6; font-size: clamp(8px, .68vw, 10px); line-height: 1.85; letter-spacing: .2em; text-transform: uppercase; }
.work-footer :focus-visible { outline-color: var(--soft-white); }

/* Tablet */
@media (max-width: 980px) {
  .header-inner { gap: 18px; }
  .main-nav { gap: 22px; }
  .header-cta { min-width: 128px; padding-inline: 18px; }
  .work-hero-inner { grid-template-columns: 48% 52%; }
  .work-hero-visual { left: 51%; }
  .work-hero h1 { font-size: clamp(47px, 6vw, 61px); }
  .filter-bar { gap: 20px; }
  .filter-button { min-width: auto; }
  .footer-cta { padding-left: 0; gap: 20px; }
  .footer-cta h2 { font-size: 27px; }
  .footer-cta > .button { margin-left: 0; padding-inline: 22px; }
  .footer-bottom { gap: 18px; }
  .footer-note { padding-left: 15px; }
}

/* Mobile */
@media (max-width: 767px) {
  .work-container { width: calc(100% - 38px); }
  .header-inner { min-height: 70px; flex-wrap: wrap; }
  .wordmark { font-size: 31px; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; min-height: 44px; align-items: center; gap: 11px; padding-left: 14px; font-size: 11px; }
  .menu-icon { position: relative; width: 21px; height: 11px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; transition: transform var(--ease); }
  .menu-toggle[aria-expanded="true"] .menu-icon { height: 1px; border-bottom: 0; transform: rotate(-45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { content: ""; position: absolute; inset: -1px 0 auto; height: 1px; background: currentColor; transform: rotate(90deg); }
  .main-nav { width: 100%; justify-content: space-between; gap: 10px; margin: 0; padding: 2px 0 15px; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 38px; font-size: 11px; }
  .work-hero { min-height: 0; padding-bottom: 0; }
  .work-hero::after { display: none; }
  .work-hero-inner { display: flex; width: 100%; flex-direction: column; }
  .work-hero-copy { width: calc(100% - 38px); padding: 42px 0 38px; }
  .work-hero h1 { margin-block: 16px 22px; font-size: clamp(45px, 13vw, 64px); line-height: .92; }
  .work-hero-text { max-width: 460px; font-size: 15px; }
  .work-hero-visual { position: relative; inset: auto; width: calc(100% - 18px); align-self: flex-end; aspect-ratio: 1.18; border-radius: 28% 0 0 0 / 40% 0 0 0; }
  .work-hero-visual img { object-position: 54% center; }
  .hero-note { top: 11%; left: 5%; font-size: 24px; }
  .portfolio-section { padding-bottom: 94px; }
  .portfolio-inner { width: 100%; }
  .filter-bar { display: flex; min-height: 82px; gap: 6px; padding: 15px 19px; overflow-x: auto; border-bottom: 1px solid var(--line-soft); scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-button { flex: 0 0 auto; min-height: 40px; padding-inline: 16px; }
  .filter-arrow { display: flex; flex: 0 0 45px; align-items: center; justify-content: center; }
  .project-grid { grid-template-columns: 1fr; gap: 24px; padding: 28px 19px 0; }
  .project-meta { min-height: 70px; padding-inline: 15px; }
  .portfolio-leaf { width: 82%; }
  .portfolio-leaf-left { bottom: -2%; left: -39%; }
  .portfolio-leaf-right { top: 48%; right: -53%; }
  .work-footer { --wave-height: 36px; padding-top: 13px; padding-bottom: 25px; }
  .work-footer::before { background-position: 28% center; }
  .footer-cta { flex-direction: column; align-items: flex-start; gap: 23px; padding: 0 0 36px; }
  .footer-cta h2 { font-size: clamp(29px, 6.9vw, 43px); line-height: 1.1; }
  .footer-cta h2 > span { padding-left: 0; }
  .footer-cta > p { padding-left: 17px; font-size: 14px; }
  .footer-cta > .button { margin-left: 0; }
  .footer-bottom { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 20px; }
  .footer-wordmark { font-size: 36px; }
  .footer-tagline { font-size: 11px; }
  .footer-social { gap: 0; margin-left: -11px; }
  .footer-note { justify-self: end; padding-left: 16px; font-size: 8px; }
}

@media (max-width: 370px) {
  .work-container, .work-hero-copy { width: calc(100% - 30px); }
  .wordmark { font-size: 28px; }
  .main-nav { gap: 6px; }
  .main-nav a { font-size: 10px; }
  .work-hero h1 { font-size: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Browser zoom-out creates an ultra-wide CSS viewport. Keep the complete
   composition on the same 1920px artboard so images and copy scale together. */
@media (min-width: 1921px) {
  html:has(.work-page) { background: var(--paper); }
  .work-page { width: 1920px; margin-inline: auto; }
}
